var jc=e=>{throw TypeError(e)};var wl=(e,t,n)=>t.has(e)||jc("Cannot "+n);var k=(e,t,n)=>(wl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?jc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(wl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ke=(e,t,n)=>(wl(e,t,"access private method"),n);var Ci=(e,t,n,r)=>({set _(o){U(e,t,o,n)},get _(){return k(e,t,r)}});function Lg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Of={exports:{}},$s={},Af={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var di=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Dg=Symbol.for("react.fragment"),zg=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),$g=Symbol.for("react.provider"),Bg=Symbol.for("react.context"),Ug=Symbol.for("react.forward_ref"),Vg=Symbol.for("react.suspense"),Hg=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),Tc=Symbol.iterator;function Qg(e){return e===null||typeof e!="object"?null:(e=Tc&&e[Tc]||e["@@iterator"],typeof e=="function"?e:null)}var _f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mf=Object.assign,Lf={};function ao(e,t,n){this.props=e,this.context=t,this.refs=Lf,this.updater=n||_f}ao.prototype.isReactComponent={};ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function If(){}If.prototype=ao.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=Lf,this.updater=n||_f}var uu=au.prototype=new If;uu.constructor=au;Mf(uu,ao.prototype);uu.isPureReactComponent=!0;var Rc=Array.isArray,Df=Object.prototype.hasOwnProperty,cu={current:null},zf={key:!0,ref:!0,__self:!0,__source:!0};function Ff(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Df.call(t,r)&&!zf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=P[H];if(0>>1;Ho(he,L))Neo(J,he)?(P[H]=J,P[Ne]=L,H=Ne):(P[H]=he,P[q]=L,H=q);else if(Neo(J,L))P[H]=J,P[Ne]=L,H=Ne;else break e}}return j}function o(P,j){var L=P.sortIndex-j.sortIndex;return L!==0?L:P.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,p=null,m=3,f=!1,S=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=P)r(u),j.sortIndex=j.expirationTime,t(a,j);else break;j=n(u)}}function E(P){if(y=!1,v(P),!S)if(n(a)!==null)S=!0,$(b);else{var j=n(u);j!==null&&V(E,j.startTime-P)}}function b(P,j){S=!1,y&&(y=!1,g(T),T=-1),f=!0;var L=m;try{for(v(j),p=n(a);p!==null&&(!(p.expirationTime>j)||P&&!F());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var z=H(p.expirationTime<=j);j=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(a)&&r(a),v(j)}else r(a);p=n(a)}if(p!==null)var K=!0;else{var q=n(u);q!==null&&V(E,q.startTime-j),K=!1}return K}finally{p=null,m=L,f=!1}}var C=!1,N=null,T=-1,_=5,A=-1;function F(){return!(e.unstable_now()-A<_)}function D(){if(N!==null){var P=e.unstable_now();A=P;var j=!0;try{j=N(!0,P)}finally{j?Q():(C=!1,N=null)}}else C=!1}var Q;if(typeof h=="function")Q=function(){h(D)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Y=M.port2;M.port1.onmessage=D,Q=function(){Y.postMessage(null)}}else Q=function(){x(D,0)};function $(P){N=P,C||(C=!0,Q())}function V(P,j){T=x(function(){P(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){S||f||(S=!0,$(b))},e.unstable_forceFrameRate=function(P){0>P||125H?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(y?(g(T),T=-1):y=!0,V(E,L-H))):(P.sortIndex=z,t(a,P),S||f||(S=!0,$(b))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var j=m;return function(){var L=m;m=j;try{return P.apply(this,arguments)}finally{m=L}}}})(Wf);Hf.exports=Wf;var rv=Hf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ov=w,Je=rv;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ea=Object.prototype.hasOwnProperty,iv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ac={},_c={};function sv(e){return ea.call(_c,e)?!0:ea.call(Ac,e)?!1:iv.test(e)?_c[e]=!0:(Ac[e]=!0,!1)}function lv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function av(e,t,n,r){if(t===null||typeof t>"u"||lv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var fu=/[\-:]([a-z])/g;function pu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fu,pu);be[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fu,pu);be[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fu,pu);be[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});be.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function hu(e,t,n,r){var o=be.hasOwnProperty(t)?be[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Po(e):""}function uv(e){switch(e.tag){case 5:return Po(e.type);case 16:return Po("Lazy");case 13:return Po("Suspense");case 19:return Po("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function oa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nr:return"Fragment";case Cr:return"Portal";case ta:return"Profiler";case mu:return"StrictMode";case na:return"Suspense";case ra:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gf:return(e.displayName||"Context")+".Consumer";case Kf:return(e._context.displayName||"Context")+".Provider";case gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vu:return t=e.displayName||null,t!==null?t:oa(e.type)||"Memo";case vn:t=e._payload,e=e._init;try{return oa(e(t))}catch{}}return null}function cv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oa(t);case 8:return t===mu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dv(e){var t=qf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){e._valueTracker||(e._valueTracker=dv(e))}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ia(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zf(e,t){t=t.checked,t!=null&&hu(e,"checked",t,!1)}function sa(e,t){Zf(e,t);var n=Dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?la(e,t.type,n):t.hasOwnProperty("defaultValue")&&la(e,t.type,Dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ic(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function la(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jo=Array.isArray;function Ir(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ao={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fv=["Webkit","ms","Moz","O"];Object.keys(Ao).forEach(function(e){fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ao[t]=Ao[e]})});function np(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ao.hasOwnProperty(e)&&Ao[e]?(""+t).trim():t+"px"}function rp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=np(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ca(e,t){if(t){if(pv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function da(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fa=null;function yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,Dr=null,zr=null;function Fc(e){if(e=hi(e)){if(typeof pa!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Ws(t),pa(e.stateNode,e.type,t))}}function op(e){Dr?zr?zr.push(e):zr=[e]:Dr=e}function ip(){if(Dr){var e=Dr,t=zr;if(zr=Dr=null,Fc(e),t)for(e=0;e>>=0,e===0?32:31-(Cv(e)/Nv|0)|0}var Ti=64,Ri=4194304;function To(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=To(l):(i&=s,i!==0&&(r=To(i)))}else s=n&~o,s!==0?r=To(s):i!==0&&(r=To(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function Tv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Mo),Gc=" ",Yc=!1;function Np(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function iy(e,t){switch(e){case"compositionend":return kp(t);case"keypress":return t.which!==32?null:(Yc=!0,Gc);case"textInput":return e=t.data,e===Gc&&Yc?null:e;default:return null}}function sy(e,t){if(kr)return e==="compositionend"||!ku&&Np(e,t)?(e=bp(),qi=bu=kn=null,kr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jc(n)}}function Rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function Pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function my(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rp(n.ownerDocument.documentElement,n)){if(r!==null&&Pu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ed(n,i);var s=ed(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pr=null,xa=null,Io=null,wa=!1;function td(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wa||Pr==null||Pr!==as(r)||(r=Pr,"selectionStart"in r&&Pu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Io&&Yo(Io,r)||(Io=r,r=ms(xa,"onSelect"),0Rr||(e.current=ka[Rr],ka[Rr]=null,Rr--)}function ne(e,t){Rr++,ka[Rr]=e.current,e.current=t}var zn={},Oe=Hn(zn),Ue=Hn(!1),ur=zn;function eo(e,t){var n=e.type.contextTypes;if(!n)return zn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function vs(){ie(Ue),ie(Oe)}function ad(e,t,n){if(Oe.current!==zn)throw Error(R(168));ne(Oe,t),ne(Ue,n)}function $p(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,cv(e)||"Unknown",o));return ce({},n,r)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,ur=Oe.current,ne(Oe,e),ne(Ue,Ue.current),!0}function ud(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=$p(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ue),ie(Oe),ne(Oe,e)):ie(Ue),ne(Ue,n)}var Wt=null,Qs=!1,zl=!1;function Bp(e){Wt===null?Wt=[e]:Wt.push(e)}function Py(e){Qs=!0,Bp(e)}function Wn(){if(!zl&&Wt!==null){zl=!0;var e=0,t=ee;try{var n=Wt;for(ee=1;e>=s,o-=s,Kt=1<<32-St(t)+o|n<T?(_=N,N=null):_=N.sibling;var A=m(g,N,v[T],E);if(A===null){N===null&&(N=_);break}e&&N&&A.alternate===null&&t(g,N),h=i(A,h,T),C===null?b=A:C.sibling=A,C=A,N=_}if(T===v.length)return n(g,N),le&&Yn(g,T),b;if(N===null){for(;TT?(_=N,N=null):_=N.sibling;var F=m(g,N,A.value,E);if(F===null){N===null&&(N=_);break}e&&N&&F.alternate===null&&t(g,N),h=i(F,h,T),C===null?b=F:C.sibling=F,C=F,N=_}if(A.done)return n(g,N),le&&Yn(g,T),b;if(N===null){for(;!A.done;T++,A=v.next())A=p(g,A.value,E),A!==null&&(h=i(A,h,T),C===null?b=A:C.sibling=A,C=A);return le&&Yn(g,T),b}for(N=r(g,N);!A.done;T++,A=v.next())A=f(N,g,T,A.value,E),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?T:A.key),h=i(A,h,T),C===null?b=A:C.sibling=A,C=A);return e&&N.forEach(function(D){return t(g,D)}),le&&Yn(g,T),b}function x(g,h,v,E){if(typeof v=="object"&&v!==null&&v.type===Nr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ki:e:{for(var b=v.key,C=h;C!==null;){if(C.key===b){if(b=v.type,b===Nr){if(C.tag===7){n(g,C.sibling),h=o(C,v.props.children),h.return=g,g=h;break e}}else if(C.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===vn&&fd(b)===C.type){n(g,C.sibling),h=o(C,v.props),h.ref=Eo(g,C,v),h.return=g,g=h;break e}n(g,C);break}else t(g,C);C=C.sibling}v.type===Nr?(h=ar(v.props.children,g.mode,E,v.key),h.return=g,g=h):(E=os(v.type,v.key,v.props,null,g.mode,E),E.ref=Eo(g,h,v),E.return=g,g=E)}return s(g);case Cr:e:{for(C=v.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(g,h.sibling),h=o(h,v.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Ql(v,g.mode,E),h.return=g,g=h}return s(g);case vn:return C=v._init,x(g,h,C(v._payload),E)}if(jo(v))return S(g,h,v,E);if(vo(v))return y(g,h,v,E);Di(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,v),h.return=g,g=h):(n(g,h),h=Wl(v,g.mode,E),h.return=g,g=h),s(g)):n(g,h)}return x}var no=Wp(!0),Qp=Wp(!1),Ss=Hn(null),Es=null,_r=null,Ou=null;function Au(){Ou=_r=Es=null}function _u(e){var t=Ss.current;ie(Ss),e._currentValue=t}function Ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $r(e,t){Es=e,Ou=_r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(Ou!==e)if(e={context:e,memoizedValue:t,next:null},_r===null){if(Es===null)throw Error(R(308));_r=e,Es.dependencies={lanes:0,firstContext:e}}else _r=_r.next=e;return t}var Jn=null;function Mu(e){Jn===null?Jn=[e]:Jn.push(e)}function Kp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mu(t)):(n.next=o.next,o.next=n),t.interleaved=n,en(e,r)}function en(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yn=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,en(e,n)}return o=r.interleaved,o===null?(t.next=t,Mu(r)):(t.next=o.next,o.next=t),r.interleaved=t,en(e,n)}function Zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function pd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bs(e,t,n,r){var o=e.updateQueue;yn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var p=o.baseState;s=0,d=u=a=null,l=i;do{var m=l.lane,f=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(m=t,f=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){p=S.call(f,p,m);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,m=typeof S=="function"?S.call(f,p,m):S,m==null)break e;p=ce({},p,m);break e;case 2:yn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else f={eventTime:f,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,a=p):d=d.next=f,s|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);fr|=s,e.lanes=s,e.memoizedState=p}}function hd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),t()}finally{ee=n,$l.transition=r}}function dh(){return ut().memoizedState}function Oy(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fh(e))ph(t,n);else if(n=Kp(e,t,n,r),n!==null){var o=Ie();Et(n,e,r,o),hh(n,t,r)}}function Ay(e,t,n){var r=Ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fh(e))ph(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,bt(l,s)){var a=t.interleaved;a===null?(o.next=o,Mu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Kp(e,t,o,r),n!==null&&(o=Ie(),Et(n,e,r,o),hh(n,t,r))}}function fh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ph(e,t){Do=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var ks={readContext:at,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},_y={readContext:at,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:gd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,es(4194308,4,sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Oy.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:md,useDebugValue:Vu,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=md(!1),t=e[0];return e=Ry.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=jt();if(le){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),we===null)throw Error(R(349));dr&30||Zp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gd(eh.bind(null,r,i,e),[e]),r.flags|=2048,ri(9,Jp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=we.identifierPrefix;if(le){var n=Gt,r=Kt;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ti++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[At]=t,e[Zo]=r,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(s=da(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oio&&(t.flags|=128,r=!0,bo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return je(t),null}else 2*pe()-i.renderingStartTime>io&&n!==1073741824&&(t.flags|=128,r=!0,bo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Yu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function By(e,t){switch(Tu(t),t.tag){case 1:return Ve(t.type)&&vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ro(),ie(Ue),ie(Oe),zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Du(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return ro(),null;case 10:return _u(t.type._context),null;case 22:case 23:return Yu(),null;case 24:return null;default:return null}}var Fi=!1,Re=!1,Uy=typeof WeakSet=="function"?WeakSet:Set,I=null;function Mr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function za(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Pd=!1;function Vy(e,t){if(Sa=ps,e=Op(),Pu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,p=e,m=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(l=s+o),p!==i||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)m=p,p=f;for(;;){if(p===e)break t;if(m===n&&++u===o&&(l=s),m===i&&++d===r&&(a=s),(f=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ea={focusedElem:e,selectionRange:n},ps=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,x=S.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:mt(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return S=Pd,Pd=!1,S}function zo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&za(t,n,i)}o=o.next}while(o!==r)}}function Ys(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Zo],delete t[Na],delete t[Ny],delete t[ky])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jh(e){return e.tag===5||e.tag===3||e.tag===4}function jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gs));else if(r!==4&&(e=e.child,e!==null))for($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}function Ba(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ba(e,t,n),e=e.sibling;e!==null;)Ba(e,t,n),e=e.sibling}var Se=null,xt=!1;function pn(e,t,n){for(n=n.child;n!==null;)Th(e,t,n),n=n.sibling}function Th(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Bs,n)}catch{}switch(n.tag){case 5:Re||Mr(n,t);case 6:var r=Se,o=xt;Se=null,pn(e,t,n),Se=r,xt=o,Se!==null&&(xt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(xt?(e=Se,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),Ko(e)):Dl(Se,n.stateNode));break;case 4:r=Se,o=xt,Se=n.stateNode.containerInfo,xt=!0,pn(e,t,n),Se=r,xt=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&za(n,t,s),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Re&&(Mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,pn(e,t,n),Re=r):pn(e,t,n);break;default:pn(e,t,n)}}function Td(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uy),t.forEach(function(r){var o=Zy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wy(r/1960))-r,10e?16:e,Pn===null)var r=!1;else{if(e=Pn,Pn=null,Ts=0,X&6)throw Error(R(331));var o=X;for(X|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Ku?lr(e,0):Qu|=n),He(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=Ri,Ri<<=1,!(Ri&130023424)&&(Ri=4194304)):t=1);var n=Ie();e=en(e,t),e!==null&&(fi(e,t,n),He(e,n))}function Xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function Zy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Dh(e,n)}var zh;zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,Fy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,le&&t.flags&1048576&&Up(t,ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ts(e,t),e=t.pendingProps;var o=eo(t,Oe.current);$r(t,n),o=$u(null,t,r,e,o,n);var i=Bu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(i=!0,ys(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lu(t),o.updater=Gs,t.stateNode=o,o._reactInternals=t,Oa(t,r,e,n),t=Ma(null,t,r,!0,i,n)):(t.tag=0,le&&i&&ju(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=e0(r),e=mt(r,e),o){case 0:t=_a(null,t,r,e,n);break e;case 1:t=Cd(null,t,r,e,n);break e;case 11:t=Ed(null,t,r,e,n);break e;case 14:t=bd(null,t,r,mt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),_a(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Cd(e,t,r,o,n);case 3:e:{if(Sh(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Gp(e,t),bs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=oo(Error(R(423)),t),t=Nd(e,t,r,n,o);break e}else if(r!==o){o=oo(Error(R(424)),t),t=Nd(e,t,r,n,o);break e}else for(qe=An(t.stateNode.containerInfo.firstChild),Xe=t,le=!0,wt=null,n=Qp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(to(),r===o){t=tn(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Yp(t),e===null&&ja(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ba(r,o)?s=null:i!==null&&ba(r,i)&&(t.flags|=32),wh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Eh(e,t,n);case 4:return Iu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Ed(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(Ss,r._currentValue),r._currentValue=s,i!==null)if(bt(i.value,s)){if(i.children===o.children&&!Ue.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Yt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ta(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ta(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=at(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),bd(e,t,r,o,n);case 15:return yh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),ts(e,t),t.tag=1,Ve(r)?(e=!0,ys(t)):e=!1,$r(t,n),mh(t,r,o),Oa(t,r,o,n),Ma(null,t,r,!0,e,n);case 19:return bh(e,t,n);case 22:return xh(e,t,n)}throw Error(R(156,t.tag))};function Fh(e,t){return fp(e,t)}function Jy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new Jy(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e0(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gu)return 11;if(e===vu)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function os(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Xu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Nr:return ar(n.children,o,i,t);case mu:s=8,o|=8;break;case ta:return e=st(12,n,t,o|2),e.elementType=ta,e.lanes=i,e;case na:return e=st(13,n,t,o),e.elementType=na,e.lanes=i,e;case ra:return e=st(19,n,t,o),e.elementType=ra,e.lanes=i,e;case Yf:return Xs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kf:s=10;break e;case Gf:s=9;break e;case gu:s=11;break e;case vu:s=14;break e;case vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=st(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ar(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Xs(e,t,n,r){return e=st(22,e,r,t),e.elementType=Yf,e.lanes=n,e.stateNode={isHidden:!1},e}function Wl(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zu(e,t,n,r,o,i,s,l,a){return e=new t0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=st(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lu(i),e}function n0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vh)}catch(e){console.error(e)}}Vh(),Vf.exports=et;var gi=Vf.exports;const Hh=Rf(gi);var Wh,Dd=gi;Wh=Dd.createRoot,Dd.hydrateRoot;const l0=1,a0=1e6;let Kl=0;function u0(){return Kl=(Kl+1)%Number.MAX_SAFE_INTEGER,Kl.toString()}const Gl=new Map,zd=e=>{if(Gl.has(e))return;const t=setTimeout(()=>{Gl.delete(e),Bo({type:"REMOVE_TOAST",toastId:e})},a0);Gl.set(e,t)},c0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,l0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?zd(n):e.toasts.forEach(r=>{zd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},is=[];let ss={toasts:[]};function Bo(e){ss=c0(ss,e),is.forEach(t=>{t(ss)})}function d0({...e}){const t=u0(),n=o=>Bo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Bo({type:"DISMISS_TOAST",toastId:t});return Bo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function f0(){const[e,t]=w.useState(ss);return w.useEffect(()=>(is.push(t),()=>{const n=is.indexOf(t);n>-1&&is.splice(n,1)}),[e]),{...e,toast:d0,dismiss:n=>Bo({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Fd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Fd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:m,children:f,...S}=p,y=((g=m==null?void 0:m[e])==null?void 0:g[a])||l,x=w.useMemo(()=>S,Object.values(S));return c.jsx(y.Provider,{value:x,children:f})};u.displayName=i+"Provider";function d(p,m){var y;const f=((y=m==null?void 0:m[e])==null?void 0:y[a])||l,S=w.useContext(f);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,p0(o,...t)]}function p0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(i)[`__scope${u}`];return{...l,...p}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function As(e){const t=m0(e),n=w.forwardRef((r,o)=>{const{children:i,...s}=r,l=w.Children.toArray(i),a=l.find(v0);if(a){const u=a.props.children,d=l.map(p=>p===a?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var h0=As("Slot");function m0(e){const t=w.forwardRef((n,r)=>{const{children:o,...i}=n;if(w.isValidElement(o)){const s=x0(o),l=y0(i,o.props);return o.type!==w.Fragment&&(l.ref=r?Qh(r,s):s),w.cloneElement(o,l)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kh=Symbol("radix.slottable");function g0(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Kh,t}function v0(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kh}function y0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function x0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function w0(e){const t=e+"CollectionProvider",[n,r]=nl(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:x,children:g}=y,h=O.useRef(null),v=O.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:v,collectionRef:h,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=As(l),u=O.forwardRef((y,x)=>{const{scope:g,children:h}=y,v=i(l,g),E=Ct(x,v.collectionRef);return c.jsx(a,{ref:E,children:h})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=As(d),f=O.forwardRef((y,x)=>{const{scope:g,children:h,...v}=y,E=O.useRef(null),b=Ct(x,E),C=i(d,g);return O.useEffect(()=>(C.itemMap.set(E,{ref:E,...v}),()=>void C.itemMap.delete(E))),c.jsx(m,{[p]:"",ref:b,children:h})});f.displayName=d;function S(y){const x=i(e+"CollectionConsumer",y);return O.useCallback(()=>{const h=x.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((C,N)=>v.indexOf(C.ref.current)-v.indexOf(N.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},S,r]}var S0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=S0.reduce((e,t)=>{const n=As(`Primitive.${t}`),r=w.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gh(e,t){e&&gi.flushSync(()=>e.dispatchEvent(t))}function Fn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function E0(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var b0="DismissableLayer",Qa="dismissableLayer.update",C0="dismissableLayer.pointerDownOutside",N0="dismissableLayer.focusOutside",$d,Yh=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nc=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=w.useContext(Yh),[d,p]=w.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),S=Ct(t,N=>p(N)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(x),h=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=g,b=P0(N=>{const T=N.target,_=[...u.branches].some(A=>A.contains(T));!E||_||(o==null||o(N),s==null||s(N),N.defaultPrevented||l==null||l())},m),C=j0(N=>{const T=N.target;[...u.branches].some(A=>A.contains(T))||(i==null||i(N),s==null||s(N),N.defaultPrevented||l==null||l())},m);return E0(N=>{h===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},m),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($d=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Bd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=$d)}},[d,m,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Bd())},[d,u]),w.useEffect(()=>{const N=()=>f({});return document.addEventListener(Qa,N),()=>document.removeEventListener(Qa,N)},[]),c.jsx(Ke.div,{...a,ref:S,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,b.onPointerDownCapture)})});nc.displayName=b0;var k0="DismissableLayerBranch",qh=w.forwardRef((e,t)=>{const n=w.useContext(Yh),r=w.useRef(null),o=Ct(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(Ke.div,{...e,ref:o})});qh.displayName=k0;function P0(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Xh(C0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function j0(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xh(N0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bd(){const e=new CustomEvent(Qa);document.dispatchEvent(e)}function Xh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gh(o,i):o.dispatchEvent(i)}var T0=nc,R0=qh,$n=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},O0="Portal",Zh=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=w.useState(!1);$n(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Hh.createPortal(c.jsx(Ke.div,{...r,ref:t}),s):null});Zh.displayName=O0;function A0(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var rc=e=>{const{present:t,children:n}=e,r=_0(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=Ct(r.ref,M0(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};rc.displayName="Presence";function _0(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[l,a]=A0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Ui(r.current);i.current=l==="mounted"?u:"none"},[l]),$n(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,f=Ui(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),$n(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const y=Ui(r.current).includes(f.animationName);if(f.target===t&&y&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=f=>{f.target===t&&(i.current=Ui(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ui(e){return(e==null?void 0:e.animationName)||"none"}function M0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var L0=Bf[" useInsertionEffect ".trim().toString()]||$n;function I0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=D0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=w.useCallback(d=>{var p;if(l){const m=z0(d)?d(e):d;m!==e&&((p=s.current)==null||p.call(s,m))}else i(d)},[l,e,i,s]);return[a,u]}function D0({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),i=w.useRef(t);return L0(()=>{i.current=t},[t]),w.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function z0(e){return typeof e=="function"}var F0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$0="VisuallyHidden",rl=w.forwardRef((e,t)=>c.jsx(Ke.span,{...e,ref:t,style:{...F0,...e.style}}));rl.displayName=$0;var B0=rl,oc="ToastProvider",[ic,U0,V0]=w0("Toast"),[Jh,WE]=nl("Toast",[V0]),[H0,ol]=Jh(oc),em=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=w.useState(null),[u,d]=w.useState(0),p=w.useRef(!1),m=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${oc}\`. Expected non-empty \`string\`.`),c.jsx(ic.Provider,{scope:t,children:c.jsx(H0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:w.useCallback(()=>d(f=>f+1),[]),onToastRemove:w.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:s})})};em.displayName=oc;var tm="ToastViewport",W0=["F8"],Ka="toast.viewportPause",Ga="toast.viewportResume",nm=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=W0,label:o="Notifications ({hotkey})",...i}=e,s=ol(tm,n),l=U0(n),a=w.useRef(null),u=w.useRef(null),d=w.useRef(null),p=w.useRef(null),m=Ct(t,p,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=s.toastCount>0;w.useEffect(()=>{const x=g=>{var v;r.length!==0&&r.every(E=>g[E]||g.code===E)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=a.current,g=p.current;if(S&&x&&g){const h=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(Ka);g.dispatchEvent(C),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(Ga);g.dispatchEvent(C),s.isClosePausedRef.current=!1}},E=C=>{!x.contains(C.relatedTarget)&&v()},b=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",h),x.addEventListener("focusout",E),x.addEventListener("pointermove",h),x.addEventListener("pointerleave",b),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",h),x.removeEventListener("focusout",E),x.removeEventListener("pointermove",h),x.removeEventListener("pointerleave",b),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[S,s.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:x})=>{const h=l().map(v=>{const E=v.ref.current,b=[E,...ox(E)];return x==="forwards"?b:b.reverse()});return(x==="forwards"?h.reverse():h).flat()},[l]);return w.useEffect(()=>{const x=p.current;if(x){const g=h=>{var b,C,N;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const T=document.activeElement,_=h.shiftKey;if(h.target===x&&_){(b=u.current)==null||b.focus();return}const D=y({tabbingDirection:_?"backwards":"forwards"}),Q=D.findIndex(M=>M===T);Yl(D.slice(Q+1))?h.preventDefault():_?(C=u.current)==null||C.focus():(N=d.current)==null||N.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[l,y]),c.jsxs(R0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&c.jsx(Ya,{ref:u,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});Yl(x)}}),c.jsx(ic.Slot,{scope:n,children:c.jsx(Ke.ol,{tabIndex:-1,...i,ref:m})}),S&&c.jsx(Ya,{ref:d,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});Yl(x)}})]})});nm.displayName=tm;var rm="ToastFocusProxy",Ya=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ol(rm,n);return c.jsx(rl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Ya.displayName=rm;var vi="Toast",Q0="toast.swipeStart",K0="toast.swipeMove",G0="toast.swipeCancel",Y0="toast.swipeEnd",om=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=I0({prop:r,defaultProp:o??!0,onChange:i,caller:vi});return c.jsx(rc,{present:n||l,children:c.jsx(Z0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:Fn(e.onPause),onResume:Fn(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});om.displayName=vi;var[q0,X0]=Jh(vi,{onClose(){}}),Z0=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:f,...S}=e,y=ol(vi,n),[x,g]=w.useState(null),h=Ct(t,M=>g(M)),v=w.useRef(null),E=w.useRef(null),b=o||y.duration,C=w.useRef(0),N=w.useRef(b),T=w.useRef(0),{onToastAdd:_,onToastRemove:A}=y,F=Fn(()=>{var Y;(x==null?void 0:x.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),s()}),D=w.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),C.current=new Date().getTime(),T.current=window.setTimeout(F,M))},[F]);w.useEffect(()=>{const M=y.viewport;if(M){const Y=()=>{D(N.current),u==null||u()},$=()=>{const V=new Date().getTime()-C.current;N.current=N.current-V,window.clearTimeout(T.current),a==null||a()};return M.addEventListener(Ka,$),M.addEventListener(Ga,Y),()=>{M.removeEventListener(Ka,$),M.removeEventListener(Ga,Y)}}},[y.viewport,b,a,u,D]),w.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(b)},[i,b,y.isClosePausedRef,D]),w.useEffect(()=>(_(),()=>A()),[_,A]);const Q=w.useMemo(()=>x?dm(x):null,[x]);return y.viewport?c.jsxs(c.Fragment,{children:[Q&&c.jsx(J0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),c.jsx(q0,{scope:n,onClose:F,children:gi.createPortal(c.jsx(ic.ItemSlot,{scope:n,children:c.jsx(T0,{asChild:!0,onEscapeKeyDown:ve(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||F(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Ke.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...S,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:ve(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:ve(e.onPointerMove,M=>{if(!v.current)return;const Y=M.clientX-v.current.x,$=M.clientY-v.current.y,V=!!E.current,P=["left","right"].includes(y.swipeDirection),j=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=P?j(0,Y):0,H=P?0:j(0,$),z=M.pointerType==="touch"?10:2,K={x:L,y:H},q={originalEvent:M,delta:K};V?(E.current=K,Vi(K0,p,q,{discrete:!1})):Ud(K,y.swipeDirection,z)?(E.current=K,Vi(Q0,d,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Y)>z||Math.abs($)>z)&&(v.current=null)}),onPointerUp:ve(e.onPointerUp,M=>{const Y=E.current,$=M.target;if($.hasPointerCapture(M.pointerId)&&$.releasePointerCapture(M.pointerId),E.current=null,v.current=null,Y){const V=M.currentTarget,P={originalEvent:M,delta:Y};Ud(Y,y.swipeDirection,y.swipeThreshold)?Vi(Y0,f,P,{discrete:!0}):Vi(G0,m,P,{discrete:!0}),V.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),J0=e=>{const{__scopeToast:t,children:n,...r}=e,o=ol(vi,t),[i,s]=w.useState(!1),[l,a]=w.useState(!1);return nx(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.jsx(Zh,{asChild:!0,children:c.jsx(rl,{...r,children:i&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},ex="ToastTitle",im=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Ke.div,{...r,ref:t})});im.displayName=ex;var tx="ToastDescription",sm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Ke.div,{...r,ref:t})});sm.displayName=tx;var lm="ToastAction",am=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(cm,{altText:n,asChild:!0,children:c.jsx(sc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${lm}\`. Expected non-empty \`string\`.`),null)});am.displayName=lm;var um="ToastClose",sc=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=X0(um,n);return c.jsx(cm,{asChild:!0,children:c.jsx(Ke.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,o.onClose)})})});sc.displayName=um;var cm=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(Ke.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function dm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),rx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...dm(r))}}),t}function Vi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gh(o,i):o.dispatchEvent(i)}var Ud=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function nx(e=()=>{}){const t=Fn(e);$n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function rx(e){return e.nodeType===e.ELEMENT_NODE}function ox(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ix=em,fm=nm,pm=om,hm=im,mm=sm,gm=am,vm=sc;function ym(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Hd=xm,lc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Hd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const m=Vd(d)||Vd(p);return o[u][m]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,m]=d;return m===void 0||(u[p]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:m,...f}=d;return Object.entries(f).every(S=>{let[y,x]=S;return Array.isArray(x)?x.includes({...i,...l}[y]):{...i,...l}[y]===x})?[...u,p,m]:u},[]);return Hd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var lx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ax=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>w.createElement("svg",{ref:a,...lx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wm("lucide",o),...l},[...s.map(([u,d])=>w.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ae=(e,t)=>{const n=w.forwardRef(({className:r,...o},i)=>w.createElement(ax,{ref:i,iconNode:t,className:wm(`lucide-${sx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ux=Ae("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=Ae("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=Ae("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Oo=Ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yi=Ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fx=Ae("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const px=Ae("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const il=Ae("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hx=Ae("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mx=Ae("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ac=Ae("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gx=Ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xi=Ae("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vx=Ae("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sm=Ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yx=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),uc="-",xx=e=>{const t=Sx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(uc);return l[0]===""&&l.length!==1&&l.shift(),Em(l,t)||wx(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Em=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Em(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(uc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Wd=/^\[(.+)\]$/,wx=e=>{if(Wd.test(e)){const t=Wd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return bx(Object.entries(e.classGroups),n).forEach(([i,s])=>{qa(s,r,i,t)}),r},qa=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Qd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Ex(o)){qa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{qa(s,Qd(t,i),n,r)})})},Qd=(e,t)=>{let n=e;return t.split(uc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ex=e=>e.isThemeGetter,bx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,Cx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},bm="!",Nx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,d=0,p;for(let x=0;xd?p-d:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:S,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:s}):s},kx=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Px=e=>({cache:Cx(e.cacheSize),parseClassName:Nx(e),...xx(e)}),jx=/\s+/,Tx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(jx);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=n(u);let S=!!f,y=r(S?m.substring(0,f):m);if(!y){if(!S){l=u+(l.length>0?" "+l:l);continue}if(y=r(m),!y){l=u+(l.length>0?" "+l:l);continue}S=!1}const x=kx(d).join(":"),g=p?x+bm:x,h=g+y;if(i.includes(h))continue;i.push(h);const v=o(y,S);for(let E=0;E0?" "+l:l)}return l};function Rx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=Px(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=Tx(a,n);return o(a,d),d}return function(){return i(Rx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Nm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ax=/^\d+\/\d+$/,_x=new Set(["px","full","screen"]),Mx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ix=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>Ur(e)||_x.has(e)||Ax.test(e),hn=e=>fo(e,"length",Qx),Ur=e=>!!e&&!Number.isNaN(Number(e)),ql=e=>fo(e,"number",Ur),No=e=>!!e&&Number.isInteger(Number(e)),Fx=e=>e.endsWith("%")&&Ur(e.slice(0,-1)),W=e=>Nm.test(e),mn=e=>Mx.test(e),$x=new Set(["length","size","percentage"]),Bx=e=>fo(e,$x,km),Ux=e=>fo(e,"position",km),Vx=new Set(["image","url"]),Hx=e=>fo(e,Vx,Gx),Wx=e=>fo(e,"",Kx),ko=()=>!0,fo=(e,t,n)=>{const r=Nm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Qx=e=>Lx.test(e)&&!Ix.test(e),km=()=>!1,Kx=e=>Dx.test(e),Gx=e=>zx.test(e),Yx=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),d=re("hueRotate"),p=re("invert"),m=re("gap"),f=re("gradientColorStops"),S=re("gradientColorStopPositions"),y=re("inset"),x=re("margin"),g=re("opacity"),h=re("padding"),v=re("saturate"),E=re("scale"),b=re("sepia"),C=re("skew"),N=re("space"),T=re("translate"),_=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",W,t],D=()=>[W,t],Q=()=>["",Ut,hn],M=()=>["auto",Ur,W],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ur,W];return{cacheSize:500,separator:":",theme:{colors:[ko],spacing:[Ut,hn],blur:["none","",mn,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",mn,W],borderSpacing:D(),borderWidth:Q(),contrast:H(),grayscale:j(),hueRotate:H(),invert:j(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Fx,hn],inset:F(),margin:F(),opacity:H(),padding:D(),saturate:H(),scale:H(),sepia:j(),skew:H(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),W]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",No,W]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",No,W]}],"grid-cols":[{"grid-cols":[ko]}],"col-start-end":[{col:["auto",{span:["full",No,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ko]}],"row-start-end":[{row:["auto",{span:[No,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[mn]},mn]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mn,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ql]}],"font-family":[{font:[ko]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ur,ql]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ut,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ut,hn]}],"underline-offset":[{"underline-offset":["auto",Ut,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Ux]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Ut,W]}],"outline-w":[{outline:[Ut,hn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Ut,hn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mn,Wx]}],"shadow-color":[{shadow:[ko]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",mn,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[No,W]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ut,hn,ql]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},qx=Ox(Yx);function Ce(...e){return qx(xm(e))}const Xx=ix,Pm=w.forwardRef(({className:e,...t},n)=>c.jsx(fm,{ref:n,className:Ce("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Pm.displayName=fm.displayName;const Zx=lc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),jm=w.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(pm,{ref:r,className:Ce(Zx({variant:t}),e),...n}));jm.displayName=pm.displayName;const Jx=w.forwardRef(({className:e,...t},n)=>c.jsx(gm,{ref:n,className:Ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Jx.displayName=gm.displayName;const Tm=w.forwardRef(({className:e,...t},n)=>c.jsx(vm,{ref:n,className:Ce("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(yx,{className:"h-4 w-4"})}));Tm.displayName=vm.displayName;const Rm=w.forwardRef(({className:e,...t},n)=>c.jsx(hm,{ref:n,className:Ce("text-sm font-semibold",e),...t}));Rm.displayName=hm.displayName;const Om=w.forwardRef(({className:e,...t},n)=>c.jsx(mm,{ref:n,className:Ce("text-sm opacity-90",e),...t}));Om.displayName=mm.displayName;function ew(){const{toasts:e}=f0();return c.jsxs(Xx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return c.jsxs(jm,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Rm,{children:n}),r&&c.jsx(Om,{children:r})]}),o,c.jsx(Tm,{})]},t)}),c.jsx(Pm,{})]})}var Kd=["light","dark"],tw="(prefers-color-scheme: dark)",nw=w.createContext(void 0),rw={setTheme:e=>{},themes:[]},ow=()=>{var e;return(e=w.useContext(nw))!=null?e:rw};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Kd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(S,y=!1,x=!0)=>{let g=s?s[S]:S,h=y?S+"|| ''":`'${g}'`,v="";return o&&x&&!y&&Kd.includes(S)&&(v+=`d.style.colorScheme = '${S}';`),n==="class"?y||g?v+=`c.add(${h})`:v+="null":g&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${tw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${u?"":"else{"+m(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(i,!1,!1)};}${p}}catch(t){}}();`;return w.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var iw=e=>{switch(e){case"success":return aw;case"info":return cw;case"warning":return uw;case"error":return dw;default:return null}},sw=Array(12).fill(0),lw=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},sw.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),aw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),uw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),cw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),fw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),pw=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Xa=1,hw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Xa++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],O.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(gw(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Xa++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Fe=new hw,mw=(e,t)=>{let n=(t==null?void 0:t.id)||Xa++;return Fe.addToast({title:e,...t,id:n}),n},gw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",vw=mw,yw=()=>Fe.toasts,xw=()=>Fe.getActiveToasts();Object.assign(vw,{success:Fe.success,info:Fe.info,warning:Fe.warning,error:Fe.error,custom:Fe.custom,message:Fe.message,promise:Fe.promise,dismiss:Fe.dismiss,loading:Fe.loading},{getHistory:yw,getToasts:xw});function ww(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}ww(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Hi(e){return e.label!==void 0}var Sw=3,Ew="32px",bw="16px",Gd=4e3,Cw=356,Nw=14,kw=20,Pw=200;function ht(...e){return e.filter(Boolean).join(" ")}function jw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Tw=e=>{var t,n,r,o,i,s,l,a,u,d,p;let{invert:m,toast:f,unstyled:S,interacting:y,setHeights:x,visibleToasts:g,heights:h,index:v,toasts:E,expanded:b,removeToast:C,defaultRichColors:N,closeButton:T,style:_,cancelButtonStyle:A,actionButtonStyle:F,className:D="",descriptionClassName:Q="",duration:M,position:Y,gap:$,loadingIcon:V,expandByDefault:P,classNames:j,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[K,q]=O.useState(null),[he,Ne]=O.useState(null),[J,vr]=O.useState(!1),[ln,Qn]=O.useState(!1),[an,yr]=O.useState(!1),[un,Si]=O.useState(!1),[gl,Ei]=O.useState(!1),[vl,mo]=O.useState(0),[xr,Ec]=O.useState(0),go=O.useRef(f.duration||M||Gd),bc=O.useRef(null),Kn=O.useRef(null),kg=v===0,Pg=v+1<=g,nt=f.type,wr=f.dismissible!==!1,jg=f.className||"",Tg=f.descriptionClassName||"",bi=O.useMemo(()=>h.findIndex(B=>B.toastId===f.id)||0,[h,f.id]),Rg=O.useMemo(()=>{var B;return(B=f.closeButton)!=null?B:T},[f.closeButton,T]),Cc=O.useMemo(()=>f.duration||M||Gd,[f.duration,M]),yl=O.useRef(0),Sr=O.useRef(0),Nc=O.useRef(0),Er=O.useRef(null),[Og,Ag]=Y.split("-"),kc=O.useMemo(()=>h.reduce((B,te,se)=>se>=bi?B:B+te.height,0),[h,bi]),Pc=pw(),_g=f.invert||m,xl=nt==="loading";Sr.current=O.useMemo(()=>bi*$+kc,[bi,kc]),O.useEffect(()=>{go.current=Cc},[Cc]),O.useEffect(()=>{vr(!0)},[]),O.useEffect(()=>{let B=Kn.current;if(B){let te=B.getBoundingClientRect().height;return Ec(te),x(se=>[{toastId:f.id,height:te,position:f.position},...se]),()=>x(se=>se.filter(ct=>ct.toastId!==f.id))}},[x,f.id]),O.useLayoutEffect(()=>{if(!J)return;let B=Kn.current,te=B.style.height;B.style.height="auto";let se=B.getBoundingClientRect().height;B.style.height=te,Ec(se),x(ct=>ct.find(dt=>dt.toastId===f.id)?ct.map(dt=>dt.toastId===f.id?{...dt,height:se}:dt):[{toastId:f.id,height:se,position:f.position},...ct])},[J,f.title,f.description,x,f.id]);let cn=O.useCallback(()=>{Qn(!0),mo(Sr.current),x(B=>B.filter(te=>te.toastId!==f.id)),setTimeout(()=>{C(f)},Pw)},[f,C,x,Sr]);O.useEffect(()=>{if(f.promise&&nt==="loading"||f.duration===1/0||f.type==="loading")return;let B;return b||y||z&&Pc?(()=>{if(Nc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),cn()},go.current)),()=>clearTimeout(B)},[b,y,f,nt,z,Pc,cn]),O.useEffect(()=>{f.delete&&cn()},[cn,f.delete]);function Mg(){var B,te,se;return L!=null&&L.loading?O.createElement("div",{className:ht(j==null?void 0:j.loader,(B=f==null?void 0:f.classNames)==null?void 0:B.loader,"sonner-loader"),"data-visible":nt==="loading"},L.loading):V?O.createElement("div",{className:ht(j==null?void 0:j.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":nt==="loading"},V):O.createElement(lw,{className:ht(j==null?void 0:j.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:nt==="loading"})}return O.createElement("li",{tabIndex:0,ref:Kn,className:ht(D,jg,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[nt],(n=f==null?void 0:f.classNames)==null?void 0:n[nt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:N,"data-styled":!(f.jsx||f.unstyled||S),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":gl,"data-removed":ln,"data-visible":Pg,"data-y-position":Og,"data-x-position":Ag,"data-index":v,"data-front":kg,"data-swiping":an,"data-dismissible":wr,"data-type":nt,"data-invert":_g,"data-swipe-out":un,"data-swipe-direction":he,"data-expanded":!!(b||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":E.length-v,"--offset":`${ln?vl:Sr.current}px`,"--initial-height":P?"auto":`${xr}px`,..._,...f.style},onDragEnd:()=>{yr(!1),q(null),Er.current=null},onPointerDown:B=>{xl||!wr||(bc.current=new Date,mo(Sr.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(yr(!0),Er.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,te,se,ct;if(un||!wr)return;Er.current=null;let dt=Number(((B=Kn.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),dn=Number(((te=Kn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Gn=new Date().getTime()-((se=bc.current)==null?void 0:se.getTime()),ft=K==="x"?dt:dn,fn=Math.abs(ft)/Gn;if(Math.abs(ft)>=kw||fn>.11){mo(Sr.current),(ct=f.onDismiss)==null||ct.call(f,f),Ne(K==="x"?dt>0?"right":"left":dn>0?"down":"up"),cn(),Si(!0),Ei(!1);return}yr(!1),q(null)},onPointerMove:B=>{var te,se,ct,dt;if(!Er.current||!wr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let dn=B.clientY-Er.current.y,Gn=B.clientX-Er.current.x,ft=(se=e.swipeDirections)!=null?se:jw(Y);!K&&(Math.abs(Gn)>1||Math.abs(dn)>1)&&q(Math.abs(Gn)>Math.abs(dn)?"x":"y");let fn={x:0,y:0};K==="y"?(ft.includes("top")||ft.includes("bottom"))&&(ft.includes("top")&&dn<0||ft.includes("bottom")&&dn>0)&&(fn.y=dn):K==="x"&&(ft.includes("left")||ft.includes("right"))&&(ft.includes("left")&&Gn<0||ft.includes("right")&&Gn>0)&&(fn.x=Gn),(Math.abs(fn.x)>0||Math.abs(fn.y)>0)&&Ei(!0),(ct=Kn.current)==null||ct.style.setProperty("--swipe-amount-x",`${fn.x}px`),(dt=Kn.current)==null||dt.style.setProperty("--swipe-amount-y",`${fn.y}px`)}},Rg&&!f.jsx?O.createElement("button",{"aria-label":H,"data-disabled":xl,"data-close-button":!0,onClick:xl||!wr?()=>{}:()=>{var B;cn(),(B=f.onDismiss)==null||B.call(f,f)},className:ht(j==null?void 0:j.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:fw):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:O.createElement(O.Fragment,null,nt||f.icon||f.promise?O.createElement("div",{"data-icon":"",className:ht(j==null?void 0:j.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Mg():null,f.type!=="loading"?f.icon||(L==null?void 0:L[nt])||iw(nt):null):null,O.createElement("div",{"data-content":"",className:ht(j==null?void 0:j.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:ht(j==null?void 0:j.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?O.createElement("div",{"data-description":"",className:ht(Q,Tg,j==null?void 0:j.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&Hi(f.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:B=>{var te,se;Hi(f.cancel)&&wr&&((se=(te=f.cancel).onClick)==null||se.call(te,B),cn())},className:ht(j==null?void 0:j.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&Hi(f.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||F,onClick:B=>{var te,se;Hi(f.action)&&((se=(te=f.action).onClick)==null||se.call(te,B),!B.defaultPrevented&&cn())},className:ht(j==null?void 0:j.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Yd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Rw(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?bw:Ew;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var Ow=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:d="light",richColors:p,duration:m,style:f,visibleToasts:S=Sw,toastOptions:y,dir:x=Yd(),gap:g=Nw,loadingIcon:h,icons:v,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:b}=e,[C,N]=O.useState([]),T=O.useMemo(()=>Array.from(new Set([r].concat(C.filter(z=>z.position).map(z=>z.position)))),[C,r]),[_,A]=O.useState([]),[F,D]=O.useState(!1),[Q,M]=O.useState(!1),[Y,$]=O.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=O.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=O.useRef(null),L=O.useRef(!1),H=O.useCallback(z=>{N(K=>{var q;return(q=K.find(he=>he.id===z.id))!=null&&q.delete||Fe.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return O.useEffect(()=>Fe.subscribe(z=>{if(z.dismiss){N(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{Hh.flushSync(()=>{N(K=>{let q=K.findIndex(he=>he.id===z.id);return q!==-1?[...K.slice(0,q),{...K[q],...z},...K.slice(q+1)]:[z,...K]})})})}),[]),O.useEffect(()=>{if(d!=="system"){$(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{$(K?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(he){console.error(he)}})}},[d]),O.useEffect(()=>{C.length<=1&&D(!1)},[C]),O.useEffect(()=>{let z=K=>{var q,he;o.every(Ne=>K[Ne]||K.code===Ne)&&(D(!0),(q=V.current)==null||q.focus()),K.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),O.useEffect(()=>{if(V.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,L.current=!1)}},[V.current]),O.createElement("section",{ref:t,"aria-label":`${E} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((z,K)=>{var q;let[he,Ne]=z.split("-");return C.length?O.createElement("ol",{key:z,dir:x==="auto"?Yd():x,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":he,"data-lifted":F&&C.length>1&&!i,"data-x-position":Ne,style:{"--front-toast-height":`${((q=_[0])==null?void 0:q.height)||0}px`,"--width":`${Cw}px`,"--gap":`${g}px`,...f,...Rw(a,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,j.current=J.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Q||D(!1)},onDragEnd:()=>D(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},C.filter(J=>!J.position&&K===0||J.position===z).map((J,vr)=>{var ln,Qn;return O.createElement(Tw,{key:J.id,icons:v,index:vr,toast:J,defaultRichColors:p,duration:(ln=y==null?void 0:y.duration)!=null?ln:m,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:S,closeButton:(Qn=y==null?void 0:y.closeButton)!=null?Qn:s,interacting:Q,position:z,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:C.filter(an=>an.position==J.position),heights:_.filter(an=>an.position==J.position),setHeights:A,expandByDefault:i,gap:g,loadingIcon:h,expanded:F,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const Aw=({...e})=>{const{theme:t="system"}=ow();return c.jsx(Ow,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},_w=["top","right","bottom","left"],Bn=Math.min,Ye=Math.max,_s=Math.round,Wi=Math.floor,It=e=>({x:e,y:e}),Mw={left:"right",right:"left",bottom:"top",top:"bottom"},Lw={start:"end",end:"start"};function Za(e,t,n){return Ye(e,Bn(t,n))}function nn(e,t){return typeof e=="function"?e(t):e}function rn(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function cc(e){return e==="x"?"y":"x"}function dc(e){return e==="y"?"height":"width"}const Iw=new Set(["top","bottom"]);function _t(e){return Iw.has(rn(e))?"y":"x"}function fc(e){return cc(_t(e))}function Dw(e,t,n){n===void 0&&(n=!1);const r=po(e),o=fc(e),i=dc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ms(s)),[s,Ms(s)]}function zw(e){const t=Ms(e);return[Ja(e),t,Ja(t)]}function Ja(e){return e.replace(/start|end/g,t=>Lw[t])}const qd=["left","right"],Xd=["right","left"],Fw=["top","bottom"],$w=["bottom","top"];function Bw(e,t,n){switch(e){case"top":case"bottom":return n?t?Xd:qd:t?qd:Xd;case"left":case"right":return t?Fw:$w;default:return[]}}function Uw(e,t,n,r){const o=po(e);let i=Bw(rn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ja)))),i}function Ms(e){return e.replace(/left|right|bottom|top/g,t=>Mw[t])}function Vw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Am(e){return typeof e!="number"?Vw(e):{top:e,right:e,bottom:e,left:e}}function Ls(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Zd(e,t,n){let{reference:r,floating:o}=e;const i=_t(t),s=fc(t),l=dc(s),a=rn(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(po(t)){case"start":f[s]-=m*(n&&u?-1:1);break;case"end":f[s]+=m*(n&&u?-1:1);break}return f}const Hw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Zd(u,r,a),m=r,f={},S=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=nn(e,t)||{};if(u==null)return{};const p=Am(d),m={x:n,y:r},f=fc(o),S=dc(f),y=await s.getDimensions(u),x=f==="y",g=x?"top":"left",h=x?"bottom":"right",v=x?"clientHeight":"clientWidth",E=i.reference[S]+i.reference[f]-m[f]-i.floating[S],b=m[f]-i.reference[f],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let N=C?C[v]:0;(!N||!await(s.isElement==null?void 0:s.isElement(C)))&&(N=l.floating[v]||i.floating[S]);const T=E/2-b/2,_=N/2-y[S]/2-1,A=Bn(p[g],_),F=Bn(p[h],_),D=A,Q=N-y[S]-F,M=N/2-y[S]/2+T,Y=Za(D,M,Q),$=!a.arrow&&po(o)!=null&&M!==Y&&i.reference[S]/2-(MM<=0)){var F,D;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,Y=N[M];if(Y&&(!(p==="alignment"?h!==_t(Y):!1)||A.every(P=>P.overflows[0]>0&&_t(P.placement)===h)))return{data:{index:M,overflows:A},reset:{placement:Y}};let $=(D=A.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!$)switch(f){case"bestFit":{var Q;const V=(Q=A.filter(P=>{if(C){const j=_t(P.placement);return j===h||j==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,L)=>j+L,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:Q[0];V&&($=V);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Jd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ef(e){return _w.some(t=>e[t]>=0)}const Kw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=nn(e,t);switch(r){case"referenceHidden":{const i=await ii(t,{...o,elementContext:"reference"}),s=Jd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ef(s)}}}case"escaped":{const i=await ii(t,{...o,altBoundary:!0}),s=Jd(i,n.floating);return{data:{escapedOffsets:s,escaped:ef(s)}}}default:return{}}}}},_m=new Set(["left","top"]);async function Gw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=rn(n),l=po(n),a=_t(n)==="y",u=_m.has(s)?-1:1,d=i&&a?-1:1,p=nn(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof S=="number"&&(f=l==="end"?S*-1:S),a?{x:f*d,y:m*u}:{x:m*u,y:f*d}}const Yw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Gw(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},qw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:g,y:h}=x;return{x:g,y:h}}},...a}=nn(e,t),u={x:n,y:r},d=await ii(t,a),p=_t(rn(o)),m=cc(p);let f=u[m],S=u[p];if(i){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",h=f+d[x],v=f-d[g];f=Za(h,f,v)}if(s){const x=p==="y"?"top":"left",g=p==="y"?"bottom":"right",h=S+d[x],v=S-d[g];S=Za(h,S,v)}const y=l.fn({...t,[m]:f,[p]:S});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[m]:i,[p]:s}}}}}},Xw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=nn(e,t),d={x:n,y:r},p=_t(o),m=cc(p);let f=d[m],S=d[p];const y=nn(l,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const v=m==="y"?"height":"width",E=i.reference[m]-i.floating[v]+x.mainAxis,b=i.reference[m]+i.reference[v]-x.mainAxis;fb&&(f=b)}if(u){var g,h;const v=m==="y"?"width":"height",E=_m.has(rn(o)),b=i.reference[p]-i.floating[v]+(E&&((g=s.offset)==null?void 0:g[p])||0)+(E?0:x.crossAxis),C=i.reference[p]+i.reference[v]+(E?0:((h=s.offset)==null?void 0:h[p])||0)-(E?x.crossAxis:0);SC&&(S=C)}return{[m]:f,[p]:S}}}},Zw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=nn(e,t),d=await ii(t,u),p=rn(o),m=po(o),f=_t(o)==="y",{width:S,height:y}=i.floating;let x,g;p==="top"||p==="bottom"?(x=p,g=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(g=p,x=m==="end"?"top":"bottom");const h=y-d.top-d.bottom,v=S-d.left-d.right,E=Bn(y-d[x],h),b=Bn(S-d[g],v),C=!t.middlewareData.shift;let N=E,T=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=h),C&&!m){const A=Ye(d.left,0),F=Ye(d.right,0),D=Ye(d.top,0),Q=Ye(d.bottom,0);f?T=S-2*(A!==0||F!==0?A+F:Ye(d.left,d.right)):N=y-2*(D!==0||Q!==0?D+Q:Ye(d.top,d.bottom))}await a({...t,availableWidth:T,availableHeight:N});const _=await s.getDimensions(l.floating);return S!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function sl(){return typeof window<"u"}function ho(e){return Mm(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Mm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mm(e){return sl()?e instanceof Node||e instanceof Ze(e).Node:!1}function Nt(e){return sl()?e instanceof Element||e instanceof Ze(e).Element:!1}function $t(e){return sl()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function tf(e){return!sl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}const Jw=new Set(["inline","contents"]);function wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Jw.has(o)}const e1=new Set(["table","td","th"]);function t1(e){return e1.has(ho(e))}const n1=[":popover-open",":modal"];function ll(e){return n1.some(t=>{try{return e.matches(t)}catch{return!1}})}const r1=["transform","translate","scale","rotate","perspective"],o1=["transform","translate","scale","rotate","perspective","filter"],i1=["paint","layout","strict","content"];function pc(e){const t=hc(),n=Nt(e)?kt(e):e;return r1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||o1.some(r=>(n.willChange||"").includes(r))||i1.some(r=>(n.contain||"").includes(r))}function s1(e){let t=Un(e);for(;$t(t)&&!so(t);){if(pc(t))return t;if(ll(t))return null;t=Un(t)}return null}function hc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const l1=new Set(["html","body","#document"]);function so(e){return l1.has(ho(e))}function kt(e){return Ze(e).getComputedStyle(e)}function al(e){return Nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Un(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tf(e)&&e.host||Bt(e);return tf(t)?t.host:t}function Lm(e){const t=Un(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:$t(t)&&wi(t)?t:Lm(t)}function si(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Lm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ze(o);if(i){const l=eu(s);return t.concat(s,s.visualViewport||[],wi(o)?o:[],l&&n?si(l):[])}return t.concat(o,si(o,[],n))}function eu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Im(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$t(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_s(n)!==i||_s(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function mc(e){return Nt(e)?e:e.contextElement}function Vr(e){const t=mc(e);if(!$t(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Im(t);let s=(i?_s(n.width):n.width)/r,l=(i?_s(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const a1=It(0);function Dm(e){const t=Ze(e);return!hc()||!t.visualViewport?a1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function hr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=mc(e);let s=It(1);t&&(r?Nt(r)&&(s=Vr(r)):s=Vr(e));const l=u1(i,n,r)?Dm(i):It(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const m=Ze(i),f=r&&Nt(r)?Ze(r):r;let S=m,y=eu(S);for(;y&&r&&f!==S;){const x=Vr(y),g=y.getBoundingClientRect(),h=kt(y),v=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*x.x,E=g.top+(y.clientTop+parseFloat(h.paddingTop))*x.y;a*=x.x,u*=x.y,d*=x.x,p*=x.y,a+=v,u+=E,S=Ze(y),y=eu(S)}}return Ls({width:d,height:p,x:a,y:u})}function gc(e,t){const n=al(e).scrollLeft;return t?t.left+n:hr(Bt(e)).left+n}function zm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:gc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function c1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Bt(r),l=t?ll(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=It(1);const d=It(0),p=$t(r);if((p||!p&&!i)&&((ho(r)!=="body"||wi(s))&&(a=al(r)),$t(r))){const f=hr(r);u=Vr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const m=s&&!p&&!i?zm(s,a,!0):It(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function d1(e){return Array.from(e.getClientRects())}function f1(e){const t=Bt(e),n=al(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+gc(e);const l=-n.scrollTop;return kt(r).direction==="rtl"&&(s+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function p1(e,t){const n=Ze(e),r=Bt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=hc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const h1=new Set(["absolute","fixed"]);function m1(e,t){const n=hr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$t(e)?Vr(e):It(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function nf(e,t,n){let r;if(t==="viewport")r=p1(e,n);else if(t==="document")r=f1(Bt(e));else if(Nt(t))r=m1(t,n);else{const o=Dm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ls(r)}function Fm(e,t){const n=Un(e);return n===t||!Nt(n)||so(n)?!1:kt(n).position==="fixed"||Fm(n,t)}function g1(e,t){const n=t.get(e);if(n)return n;let r=si(e,[],!1).filter(l=>Nt(l)&&ho(l)!=="body"),o=null;const i=kt(e).position==="fixed";let s=i?Un(e):e;for(;Nt(s)&&!so(s);){const l=kt(s),a=pc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&h1.has(o.position)||wi(s)&&!a&&Fm(e,s))?r=r.filter(d=>d!==s):o=l,s=Un(s)}return t.set(e,r),r}function v1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ll(t)?[]:g1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const p=nf(t,d,o);return u.top=Ye(p.top,u.top),u.right=Bn(p.right,u.right),u.bottom=Bn(p.bottom,u.bottom),u.left=Ye(p.left,u.left),u},nf(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function y1(e){const{width:t,height:n}=Im(e);return{width:t,height:n}}function x1(e,t,n){const r=$t(t),o=Bt(t),i=n==="fixed",s=hr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=It(0);function u(){a.x=gc(o)}if(r||!r&&!i)if((ho(t)!=="body"||wi(o))&&(l=al(t)),r){const f=hr(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?zm(o,l):It(0),p=s.left+l.scrollLeft-a.x-d.x,m=s.top+l.scrollTop-a.y-d.y;return{x:p,y:m,width:s.width,height:s.height}}function Xl(e){return kt(e).position==="static"}function rf(e,t){if(!$t(e)||kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Bt(e)===n&&(n=n.ownerDocument.body),n}function $m(e,t){const n=Ze(e);if(ll(e))return n;if(!$t(e)){let o=Un(e);for(;o&&!so(o);){if(Nt(o)&&!Xl(o))return o;o=Un(o)}return n}let r=rf(e,t);for(;r&&t1(r)&&Xl(r);)r=rf(r,t);return r&&so(r)&&Xl(r)&&!pc(r)?n:r||s1(e)||n}const w1=async function(e){const t=this.getOffsetParent||$m,n=this.getDimensions,r=await n(e.floating);return{reference:x1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function S1(e){return kt(e).direction==="rtl"}const E1={convertOffsetParentRelativeRectToViewportRelativeRect:c1,getDocumentElement:Bt,getClippingRect:v1,getOffsetParent:$m,getElementRects:w1,getClientRects:d1,getDimensions:y1,getScale:Vr,isElement:Nt,isRTL:S1};function Bm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function b1(e,t){let n=null,r;const o=Bt(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:m,height:f}=u;if(l||t(),!m||!f)return;const S=Wi(p),y=Wi(o.clientWidth-(d+m)),x=Wi(o.clientHeight-(p+f)),g=Wi(d),v={rootMargin:-S+"px "+-y+"px "+-x+"px "+-g+"px",threshold:Ye(0,Bn(1,a))||1};let E=!0;function b(C){const N=C[0].intersectionRatio;if(N!==a){if(!E)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!Bm(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return s(!0),i}function C1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=mc(e),d=o||i?[...u?si(u):[],...si(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const p=u&&l?b1(u,n):null;let m=-1,f=null;s&&(f=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let S,y=a?hr(e):null;a&&x();function x(){const g=hr(e);y&&!Bm(y,g)&&n(),y=g,S=requestAnimationFrame(x)}return n(),()=>{var g;d.forEach(h=>{o&&h.removeEventListener("scroll",n),i&&h.removeEventListener("resize",n)}),p==null||p(),(g=f)==null||g.disconnect(),f=null,a&&cancelAnimationFrame(S)}}const N1=Yw,k1=qw,P1=Qw,j1=Zw,T1=Kw,of=Ww,R1=Xw,O1=(e,t,n)=>{const r=new Map,o={platform:E1,...n},i={...o.platform,_c:r};return Hw(e,t,{...o,platform:i})};var A1=typeof document<"u",_1=function(){},ls=A1?w.useLayoutEffect:_1;function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Is(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Um(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sf(e,t){const n=Um(e);return Math.round(t*n)/n}function Zl(e){const t=w.useRef(e);return ls(()=>{t.current=e}),t}function M1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,p]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=w.useState(r);Is(m,r)||f(r);const[S,y]=w.useState(null),[x,g]=w.useState(null),h=w.useCallback(P=>{P!==C.current&&(C.current=P,y(P))},[]),v=w.useCallback(P=>{P!==N.current&&(N.current=P,g(P))},[]),E=i||S,b=s||x,C=w.useRef(null),N=w.useRef(null),T=w.useRef(d),_=a!=null,A=Zl(a),F=Zl(o),D=Zl(u),Q=w.useCallback(()=>{if(!C.current||!N.current)return;const P={placement:t,strategy:n,middleware:m};F.current&&(P.platform=F.current),O1(C.current,N.current,P).then(j=>{const L={...j,isPositioned:D.current!==!1};M.current&&!Is(T.current,L)&&(T.current=L,gi.flushSync(()=>{p(L)}))})},[m,t,n,F,D]);ls(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const M=w.useRef(!1);ls(()=>(M.current=!0,()=>{M.current=!1}),[]),ls(()=>{if(E&&(C.current=E),b&&(N.current=b),E&&b){if(A.current)return A.current(E,b,Q);Q()}},[E,b,Q,A,_]);const Y=w.useMemo(()=>({reference:C,floating:N,setReference:h,setFloating:v}),[h,v]),$=w.useMemo(()=>({reference:E,floating:b}),[E,b]),V=w.useMemo(()=>{const P={position:n,left:0,top:0};if(!$.floating)return P;const j=sf($.floating,d.x),L=sf($.floating,d.y);return l?{...P,transform:"translate("+j+"px, "+L+"px)",...Um($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:L}},[n,l,$.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:Q,refs:Y,elements:$,floatingStyles:V}),[d,Q,Y,$,V])}const L1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?of({element:r.current,padding:o}).fn(n):{}:r?of({element:r,padding:o}).fn(n):{}}}},I1=(e,t)=>({...N1(e),options:[e,t]}),D1=(e,t)=>({...k1(e),options:[e,t]}),z1=(e,t)=>({...R1(e),options:[e,t]}),F1=(e,t)=>({...P1(e),options:[e,t]}),$1=(e,t)=>({...j1(e),options:[e,t]}),B1=(e,t)=>({...T1(e),options:[e,t]}),U1=(e,t)=>({...L1(e),options:[e,t]});var V1="Arrow",Vm=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(Ke.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vm.displayName=V1;var H1=Vm;function W1(e){const[t,n]=w.useState(void 0);return $n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Hm="Popper",[Wm,Qm]=nl(Hm),[QE,Km]=Wm(Hm),Gm="PopperAnchor",Ym=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Km(Gm,n),s=w.useRef(null),l=Ct(t,s);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(Ke.div,{...o,ref:l})});Ym.displayName=Gm;var vc="PopperContent",[Q1,K1]=Wm(vc),qm=w.forwardRef((e,t)=>{var J,vr,ln,Qn,an,yr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:S,...y}=e,x=Km(vc,n),[g,h]=w.useState(null),v=Ct(t,un=>h(un)),[E,b]=w.useState(null),C=W1(E),N=(C==null?void 0:C.width)??0,T=(C==null?void 0:C.height)??0,_=r+(i!=="center"?"-"+i:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],D=F.length>0,Q={padding:A,boundary:F.filter(Y1),altBoundary:D},{refs:M,floatingStyles:Y,placement:$,isPositioned:V,middlewareData:P}=M1({strategy:"fixed",placement:_,whileElementsMounted:(...un)=>C1(...un,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[I1({mainAxis:o+T,alignmentAxis:s}),a&&D1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?z1():void 0,...Q}),a&&F1({...Q}),$1({...Q,apply:({elements:un,rects:Si,availableWidth:gl,availableHeight:Ei})=>{const{width:vl,height:mo}=Si.reference,xr=un.floating.style;xr.setProperty("--radix-popper-available-width",`${gl}px`),xr.setProperty("--radix-popper-available-height",`${Ei}px`),xr.setProperty("--radix-popper-anchor-width",`${vl}px`),xr.setProperty("--radix-popper-anchor-height",`${mo}px`)}}),E&&U1({element:E,padding:l}),q1({arrowWidth:N,arrowHeight:T}),m&&B1({strategy:"referenceHidden",...Q})]}),[j,L]=Jm($),H=Fn(S);$n(()=>{V&&(H==null||H())},[V,H]);const z=(J=P.arrow)==null?void 0:J.x,K=(vr=P.arrow)==null?void 0:vr.y,q=((ln=P.arrow)==null?void 0:ln.centerOffset)!==0,[he,Ne]=w.useState();return $n(()=>{g&&Ne(window.getComputedStyle(g).zIndex)},[g]),c.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Qn=P.transformOrigin)==null?void 0:Qn.x,(an=P.transformOrigin)==null?void 0:an.y].join(" "),...((yr=P.hide)==null?void 0:yr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Q1,{scope:n,placedSide:j,onArrowChange:b,arrowX:z,arrowY:K,shouldHideArrow:q,children:c.jsx(Ke.div,{"data-side":j,"data-align":L,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});qm.displayName=vc;var Xm="PopperArrow",G1={top:"bottom",right:"left",bottom:"top",left:"right"},Zm=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=K1(Xm,r),s=G1[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(H1,{...o,ref:n,style:{...o.style,display:"block"}})})});Zm.displayName=Xm;function Y1(e){return e!==null}var q1=e=>({name:"transformOrigin",options:e,fn(t){var x,g,h;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=Jm(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let S="",y="";return u==="bottom"?(S=s?p:`${m}px`,y=`${-a}px`):u==="top"?(S=s?p:`${m}px`,y=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,y=s?p:`${f}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=s?p:`${f}px`),{data:{x:S,y}}}});function Jm(e){const[t,n="center"]=e.split("-");return[t,n]}var X1=Ym,Z1=qm,J1=Zm,[ul,KE]=nl("Tooltip",[Qm]),yc=Qm(),eg="TooltipProvider",eS=700,lf="tooltip.open",[tS,tg]=ul(eg),ng=e=>{const{__scopeTooltip:t,delayDuration:n=eS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=w.useRef(!0),l=w.useRef(!1),a=w.useRef(0);return w.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(tS,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};ng.displayName=eg;var rg="Tooltip",[GE,cl]=ul(rg),tu="TooltipTrigger",nS=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=cl(tu,n),i=tg(tu,n),s=yc(n),l=w.useRef(null),a=Ct(t,l,o.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),p=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(X1,{asChild:!0,...s,children:c.jsx(Ke.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ve(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});nS.displayName=tu;var rS="TooltipPortal",[YE,oS]=ul(rS,{forceMount:void 0}),lo="TooltipContent",og=w.forwardRef((e,t)=>{const n=oS(lo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=cl(lo,e.__scopeTooltip);return c.jsx(rc,{present:r||s.open,children:s.disableHoverableContent?c.jsx(ig,{side:o,...i,ref:t}):c.jsx(iS,{side:o,...i,ref:t})})}),iS=w.forwardRef((e,t)=>{const n=cl(lo,e.__scopeTooltip),r=tg(lo,e.__scopeTooltip),o=w.useRef(null),i=Ct(t,o),[s,l]=w.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,m=w.useCallback(()=>{l(null),p(!1)},[p]),f=w.useCallback((S,y)=>{const x=S.currentTarget,g={x:S.clientX,y:S.clientY},h=cS(g,x.getBoundingClientRect()),v=dS(g,h),E=fS(y.getBoundingClientRect()),b=hS([...v,...E]);l(b),p(!0)},[p]);return w.useEffect(()=>()=>m(),[m]),w.useEffect(()=>{if(a&&d){const S=x=>f(x,d),y=x=>f(x,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,f,m]),w.useEffect(()=>{if(s){const S=y=>{const x=y.target,g={x:y.clientX,y:y.clientY},h=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),v=!pS(g,s);h?m():v&&(m(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,s,u,m]),c.jsx(ig,{...e,ref:i})}),[sS,lS]=ul(rg,{isInside:!1}),aS=g0("TooltipContent"),ig=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=cl(lo,n),u=yc(n),{onClose:d}=a;return w.useEffect(()=>(document.addEventListener(lf,d),()=>document.removeEventListener(lf,d)),[d]),w.useEffect(()=>{if(a.trigger){const p=m=>{const f=m.target;f!=null&&f.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),c.jsx(nc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(Z1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(aS,{children:r}),c.jsx(sS,{scope:n,isInside:!0,children:c.jsx(B0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});og.displayName=lo;var sg="TooltipArrow",uS=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yc(n);return lS(sg,n).isInside?null:c.jsx(J1,{...o,...r,ref:t})});uS.displayName=sg;function cS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function dS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function fS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function pS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=m>r&&n<(p-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function hS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),mS(t)}function mS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var gS=ng,lg=og;const vS=gS,yS=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(lg,{ref:r,sideOffset:t,className:Ce("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));yS.displayName=lg.displayName;var dl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fl=typeof window>"u"||"Deno"in globalThis;function gt(){}function xS(e,t){return typeof e=="function"?e(t):e}function wS(e){return typeof e=="number"&&e>=0&&e!==1/0}function SS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nu(e,t){return typeof e=="function"?e(t):e}function ES(e,t){return typeof e=="function"?e(t):e}function af(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==xc(s,t.options))return!1}else if(!ai(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function uf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(li(t.options.mutationKey)!==li(i))return!1}else if(!ai(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||li)(e)}function li(e){return JSON.stringify(e,(t,n)=>ru(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ai(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ai(e[n],t[n])):!1}function ag(e,t){if(e===t)return e;const n=cf(e)&&cf(t);if(n||ru(e)&&ru(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let d=0;d{setTimeout(t,e)})}function CS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ag(e,t):t}function NS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var wc=Symbol();function ug(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===wc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var tr,Sn,Wr,Ef,PS=(Ef=class extends dl{constructor(){super();Z(this,tr);Z(this,Sn);Z(this,Wr);U(this,Wr,t=>{if(!fl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Sn)||this.setEventListener(k(this,Wr))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Sn))==null||t.call(this),U(this,Sn,void 0))}setEventListener(t){var n;U(this,Wr,t),(n=k(this,Sn))==null||n.call(this),U(this,Sn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,tr)!==t&&(U(this,tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,tr)=="boolean"?k(this,tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},tr=new WeakMap,Sn=new WeakMap,Wr=new WeakMap,Ef),cg=new PS,Qr,En,Kr,bf,jS=(bf=class extends dl{constructor(){super();Z(this,Qr,!0);Z(this,En);Z(this,Kr);U(this,Kr,t=>{if(!fl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,En)||this.setEventListener(k(this,Kr))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,En))==null||t.call(this),U(this,En,void 0))}setEventListener(t){var n;U(this,Kr,t),(n=k(this,En))==null||n.call(this),U(this,En,t(this.setOnline.bind(this)))}setOnline(t){k(this,Qr)!==t&&(U(this,Qr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Qr)}},Qr=new WeakMap,En=new WeakMap,Kr=new WeakMap,bf),Ds=new jS;function TS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function RS(e){return Math.min(1e3*2**e,3e4)}function dg(e){return(e??"online")==="online"?Ds.isOnline():!0}var fg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Jl(e){return e instanceof fg}function pg(e){let t=!1,n=0,r=!1,o;const i=TS(),s=y=>{var x;r||(m(new fg(y)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>cg.isFocused()&&(e.networkMode==="always"||Ds.isOnline())&&e.canRun(),d=()=>dg(e.networkMode)&&e.canRun(),p=y=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,y),o==null||o(),i.resolve(y))},m=y=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,y),o==null||o(),i.reject(y))},f=()=>new Promise(y=>{var x;o=g=>{(r||u())&&y(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),S=()=>{if(r)return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(p).catch(g=>{var C;if(r)return;const h=e.retry??(fl?0:3),v=e.retryDelay??RS,E=typeof v=="function"?v(n,g):v,b=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?m(g):S()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?S():f().then(S),i)}}var OS=e=>setTimeout(e,0);function AS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=OS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Le=AS(),nr,Cf,hg=(Cf=class{constructor(){Z(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wS(this.gcTime)&&U(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fl?1/0:5*60*1e3))}clearGcTimeout(){k(this,nr)&&(clearTimeout(k(this,nr)),U(this,nr,void 0))}},nr=new WeakMap,Cf),Gr,rr,rt,or,Te,ui,ir,vt,Vt,Nf,_S=(Nf=class extends hg{constructor(t){super();Z(this,vt);Z(this,Gr);Z(this,rr);Z(this,rt);Z(this,or);Z(this,Te);Z(this,ui);Z(this,ir);U(this,ir,!1),U(this,ui,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,or,t.client),U(this,rt,k(this,or).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Gr,LS(this.options)),this.state=t.state??k(this,Gr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,Te))==null?void 0:t.promise}setOptions(t){this.options={...k(this,ui),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,rt).remove(this)}setData(t,n){const r=CS(this.state.data,t,this.options);return ke(this,vt,Vt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ke(this,vt,Vt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,Te))==null?void 0:r.promise;return(o=k(this,Te))==null||o.cancel(t),n?n.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Gr))}isActive(){return this.observers.some(t=>ES(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>nu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!SS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,Te))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,Te))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,Te)&&(k(this,ir)?k(this,Te).cancel({revert:!0}):k(this,Te).cancelRetry()),this.scheduleGc()),k(this,rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,vt,Vt).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,Te))return k(this,Te).continueRetry(),k(this,Te).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(U(this,ir,!0),r.signal)})},i=()=>{const m=ug(this.options,n),S=(()=>{const y={client:k(this,or),queryKey:this.queryKey,meta:this.meta};return o(y),y})();return U(this,ir,!1),this.options.persister?this.options.persister(m,S,this):m(S)},l=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,or),state:this.state,fetchFn:i};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(l,this),U(this,rr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&ke(this,vt,Vt).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const a=m=>{var f,S,y,x;Jl(m)&&m.silent||ke(this,vt,Vt).call(this,{type:"error",error:m}),Jl(m)||((S=(f=k(this,rt).config).onError)==null||S.call(f,m,this),(x=(y=k(this,rt).config).onSettled)==null||x.call(y,this.state.data,m,this)),this.scheduleGc()};return U(this,Te,pg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var f,S,y,x;if(m===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(g){a(g);return}(S=(f=k(this,rt).config).onSuccess)==null||S.call(f,m,this),(x=(y=k(this,rt).config).onSettled)==null||x.call(y,m,this.state.error,this),this.scheduleGc()},onError:a,onFail:(m,f)=>{ke(this,vt,Vt).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{ke(this,vt,Vt).call(this,{type:"pause"})},onContinue:()=>{ke(this,vt,Vt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),k(this,Te).start()}},Gr=new WeakMap,rr=new WeakMap,rt=new WeakMap,or=new WeakMap,Te=new WeakMap,ui=new WeakMap,ir=new WeakMap,vt=new WeakSet,Vt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...MS(r.data,this.options),fetchMeta:t.meta??null};case"success":return U(this,rr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Jl(o)&&o.revert&&k(this,rr)?{...k(this,rr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,rt).notify({query:this,type:"updated",action:t})})},Nf);function MS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function LS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Tt,kf,IS=(kf=class extends dl{constructor(t={}){super();Z(this,Tt);this.config=t,U(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??xc(o,n);let s=this.get(i);return s||(s=new _S({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){k(this,Tt).has(t.queryHash)||(k(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Le.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Tt).get(t)}getAll(){return[...k(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>af(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>af(t,r)):n}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,kf),Rt,_e,sr,Ot,gn,Pf,DS=(Pf=class extends hg{constructor(t){super();Z(this,Ot);Z(this,Rt);Z(this,_e);Z(this,sr);this.mutationId=t.mutationId,U(this,_e,t.mutationCache),U(this,Rt,[]),this.state=t.state||zS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Rt).includes(t)||(k(this,Rt).push(t),this.clearGcTimeout(),k(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,Rt,k(this,Rt).filter(n=>n!==t)),this.scheduleGc(),k(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Rt).length||(this.state.status==="pending"?this.scheduleGc():k(this,_e).remove(this))}continue(){var t;return((t=k(this,sr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,d,p,m,f,S,y,x,g,h,v,E,b,C,N,T;const n=()=>{ke(this,Ot,gn).call(this,{type:"continue"})};U(this,sr,pg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,A)=>{ke(this,Ot,gn).call(this,{type:"failed",failureCount:_,error:A})},onPause:()=>{ke(this,Ot,gn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,_e).canRun(this)}));const r=this.state.status==="pending",o=!k(this,sr).canStart();try{if(r)n();else{ke(this,Ot,gn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=k(this,_e).config).onMutate)==null?void 0:s.call(i,t,this));const A=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));A!==this.state.context&&ke(this,Ot,gn).call(this,{type:"pending",context:A,variables:t,isPaused:o})}const _=await k(this,sr).start();return await((d=(u=k(this,_e).config).onSuccess)==null?void 0:d.call(u,_,t,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,_,t,this.state.context)),await((S=(f=k(this,_e).config).onSettled)==null?void 0:S.call(f,_,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,_,null,t,this.state.context)),ke(this,Ot,gn).call(this,{type:"success",data:_}),_}catch(_){try{throw await((h=(g=k(this,_e).config).onError)==null?void 0:h.call(g,_,t,this.state.context,this)),await((E=(v=this.options).onError)==null?void 0:E.call(v,_,t,this.state.context)),await((C=(b=k(this,_e).config).onSettled)==null?void 0:C.call(b,void 0,_,this.state.variables,this.state.context,this)),await((T=(N=this.options).onSettled)==null?void 0:T.call(N,void 0,_,t,this.state.context)),_}finally{ke(this,Ot,gn).call(this,{type:"error",error:_})}}finally{k(this,_e).runNext(this)}}},Rt=new WeakMap,_e=new WeakMap,sr=new WeakMap,Ot=new WeakSet,gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{k(this,Rt).forEach(r=>{r.onMutationUpdate(t)}),k(this,_e).notify({mutation:this,type:"updated",action:t})})},Pf);function zS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qt,yt,ci,jf,FS=(jf=class extends dl{constructor(t={}){super();Z(this,Qt);Z(this,yt);Z(this,ci);this.config=t,U(this,Qt,new Set),U(this,yt,new Map),U(this,ci,0)}build(t,n,r){const o=new DS({mutationCache:this,mutationId:++Ci(this,ci)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Qt).add(t);const n=Qi(t);if(typeof n=="string"){const r=k(this,yt).get(n);r?r.push(t):k(this,yt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Qt).delete(t)){const n=Qi(t);if(typeof n=="string"){const r=k(this,yt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&k(this,yt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qi(t);if(typeof n=="string"){const r=k(this,yt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Qi(t);if(typeof n=="string"){const o=(r=k(this,yt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Le.batch(()=>{k(this,Qt).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Qt).clear(),k(this,yt).clear()})}getAll(){return Array.from(k(this,Qt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uf(n,r))}findAll(t={}){return this.getAll().filter(n=>uf(t,n))}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Le.batch(()=>Promise.all(t.map(n=>n.continue().catch(gt))))}},Qt=new WeakMap,yt=new WeakMap,ci=new WeakMap,jf);function Qi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ff(e){return{onFetch:(t,n)=>{var d,p,m,f,S;const r=t.options,o=(m=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:m.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const x=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=ug(t.options,t.fetchOptions),h=async(v,E,b)=>{if(y)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);const N=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:E,direction:b?"backward":"forward",meta:t.options.meta};return x(F),F})(),T=await g(N),{maxPages:_}=t.options,A=b?kS:NS;return{pages:A(v.pages,T,_),pageParams:A(v.pageParams,E,_)}};if(o&&i.length){const v=o==="backward",E=v?$S:pf,b={pages:i,pageParams:s},C=E(r,b);l=await h(b,C,v)}else{const v=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:pf(r,l);if(a>0&&E==null)break;l=await h(l,E),a++}while(a{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function pf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function $S(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var de,bn,Cn,Yr,qr,Nn,Xr,Zr,Tf,BS=(Tf=class{constructor(e={}){Z(this,de);Z(this,bn);Z(this,Cn);Z(this,Yr);Z(this,qr);Z(this,Nn);Z(this,Xr);Z(this,Zr);U(this,de,e.queryCache||new IS),U(this,bn,e.mutationCache||new FS),U(this,Cn,e.defaultOptions||{}),U(this,Yr,new Map),U(this,qr,new Map),U(this,Nn,0)}mount(){Ci(this,Nn)._++,k(this,Nn)===1&&(U(this,Xr,cg.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,de).onFocus())})),U(this,Zr,Ds.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,de).onOnline())})))}unmount(){var e,t;Ci(this,Nn)._--,k(this,Nn)===0&&((e=k(this,Xr))==null||e.call(this),U(this,Xr,void 0),(t=k(this,Zr))==null||t.call(this),U(this,Zr,void 0))}isFetching(e){return k(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,bn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(nu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=xS(t,i);if(s!==void 0)return k(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Le.batch(()=>k(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,de);Le.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,de);return Le.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Le.batch(()=>k(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Le.batch(()=>(k(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Le.batch(()=>k(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(gt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,de).build(this,t);return n.isStaleByTime(nu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=ff(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=ff(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ds.isOnline()?k(this,bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,de)}getMutationCache(){return k(this,bn)}getDefaultOptions(){return k(this,Cn)}setDefaultOptions(e){U(this,Cn,e)}setQueryDefaults(e,t){k(this,Yr).set(li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Yr).values()],n={};return t.forEach(r=>{ai(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,qr).set(li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,qr).values()],n={};return t.forEach(r=>{ai(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Cn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===wc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Cn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,de).clear(),k(this,bn).clear()}},de=new WeakMap,bn=new WeakMap,Cn=new WeakMap,Yr=new WeakMap,qr=new WeakMap,Nn=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,Tf),US=w.createContext(void 0),VS=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(US.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WS(){return Math.random().toString(36).substr(2,8)}function mf(e,t){return{usr:e.state,key:e.key,idx:t}}function ou(e,t,n,r){return n===void 0&&(n=null),zs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pl(t):t,{state:n,key:t&&t.key||r||WS()})}function gg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function pl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function QS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=jn.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(zs({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){l=jn.Pop;let x=d(),g=x==null?null:x-u;u=x,a&&a({action:l,location:y.location,delta:g})}function m(x,g){l=jn.Push;let h=ou(y.location,x,g);u=d()+1;let v=mf(h,u),E=y.createHref(h);try{s.pushState(v,"",E)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(E)}i&&a&&a({action:l,location:y.location,delta:1})}function f(x,g){l=jn.Replace;let h=ou(y.location,x,g);u=d();let v=mf(h,u),E=y.createHref(h);s.replaceState(v,"",E),i&&a&&a({action:l,location:y.location,delta:0})}function S(x){let g=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof x=="string"?x:gg(x);return h=h.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let y={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(hf,p),a=x,()=>{o.removeEventListener(hf,p),a=null}},createHref(x){return t(o,x)},createURL:S,encodeLocation(x){let g=S(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:f,go(x){return s.go(x)}};return y}var gf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gf||(gf={}));function KS(e,t,n){return n===void 0&&(n="/"),GS(e,t,n,!1)}function GS(e,t,n,r){let o=typeof t=="string"?pl(t):t,i=xg(o.pathname||"/",n);if(i==null)return null;let s=vg(e);YS(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(Qe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Hr([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(Qe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),vg(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:nE(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of yg(i.path))o(i,s,a)}),t}function yg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=yg(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function YS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qS=/^:[\w-]+$/,XS=3,ZS=2,JS=1,eE=10,tE=-2,vf=e=>e==="*";function nE(e,t){let n=e.split("/"),r=n.length;return n.some(vf)&&(r+=tE),t&&(r+=ZS),n.filter(o=>!vf(o)).reduce((o,i)=>o+(qS.test(i)?XS:i===""?JS:eE),r)}function rE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function oE(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:m,isOptional:f}=d;if(m==="*"){let y=l[p]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const S=l[p];return f&&!S?u[m]=void 0:u[m]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function iE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function xg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Hr=e=>e.join("/").replace(/\/\/+/g,"/"),lE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function aE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wg=["post","put","patch","delete"];new Set(wg);const uE=["get",...wg];new Set(uE);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},l,x.params),pathname:Hr([a,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Hr([a,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&y?w.createElement(hl.Provider,{value:{location:Fs({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:jn.Pop}},y):y}function hE(){let e=EE(),t=aE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,null)}const mE=w.createElement(hE,null);class gE extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(ml.Provider,{value:this.props.routeContext},w.createElement(Eg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vE(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(cE);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(ml.Provider,{value:t},r)}function yE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||Qe(!1),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,m)=>{let f,S=!1,y=null,x=null;n&&(f=l&&p.route.id?l[p.route.id]:void 0,y=p.route.errorElement||mE,a&&(u<0&&m===0?(S=!0,x=null):u===m&&(S=!0,x=p.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,m+1)),h=()=>{let v;return f?v=y:S?v=x:p.route.Component?v=w.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=d,w.createElement(vE,{match:p,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?w.createElement(gE,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):h()},null)}var iu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(iu||{});function xE(e){let t=w.useContext(dE);return t||Qe(!1),t}function wE(e){let t=w.useContext(ml);return t||Qe(!1),t}function SE(e){let t=wE(),n=t.matches[t.matches.length-1];return n.route.id||Qe(!1),n.route.id}function EE(){var e;let t=w.useContext(Eg),n=xE(iu.UseRouteError),r=SE(iu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function su(e){Qe(!1)}function CE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=jn.Pop,navigator:i,static:s=!1,future:l}=e;Sc()&&Qe(!1);let a=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:a,navigator:i,static:s,future:Fs({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=pl(r));let{pathname:d="/",search:p="",hash:m="",state:f=null,key:S="default"}=r,y=w.useMemo(()=>{let x=xg(d,a);return x==null?null:{location:{pathname:x,search:p,hash:m,state:f,key:S},navigationType:o}},[a,d,p,m,f,S,o]);return y==null?null:w.createElement(Sg.Provider,{value:u},w.createElement(hl.Provider,{children:n,value:y}))}function NE(e){let{children:t,location:n}=e;return fE(lu(t),n)}new Promise(()=>{});function lu(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let i=[...t,o];if(r.type===w.Fragment){n.push.apply(n,lu(r.props.children,i));return}r.type!==su&&Qe(!1),!r.props.index||!r.props.children||Qe(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=lu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const kE="6";try{window.__reactRouterVersion=kE}catch{}const PE="startTransition",xf=Bf[PE];function jE(e){let{basename:t,children:n,future:r,window:o}=e,i=w.useRef();i.current==null&&(i.current=HS({window:o,v5Compat:!0}));let s=i.current,[l,a]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=w.useCallback(p=>{u&&xf?xf(()=>a(p)):a(p)},[a,u]);return w.useLayoutEffect(()=>s.listen(d),[s,d]),w.useEffect(()=>bE(r),[r]),w.createElement(CE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var wf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wf||(wf={}));var Sf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sf||(Sf={}));const TE=lc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-soft hover:shadow-medium",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-hero text-primary-foreground hover:shadow-glow transform hover:scale-105 border-0 font-semibold",premium:"bg-gradient-accent text-accent-foreground hover:shadow-large transform hover:scale-105 border-0 font-semibold",elegant:"bg-card text-foreground border border-border hover:bg-gradient-subtle hover:shadow-medium"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),qt=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?h0:"button";return c.jsx(s,{className:Ce(TE({variant:t,size:n,className:e})),ref:i,...o})});qt.displayName="Button";const Cg="/assets/stp-flag-BCCGWgkN.png",RE=()=>c.jsx("header",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:c.jsx("div",{className:"container mx-auto px-4 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:Cg,alt:"São Tomé and Príncipe Flag",className:"h-8 w-16 rounded-md object-contain border border-border bg-white"}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-xl font-bold text-foreground",children:"São Tomé Citizenship"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Investment Program"})]})]}),c.jsxs("nav",{className:"hidden md:flex items-center gap-6",children:[c.jsx("a",{href:"#program",className:"text-foreground hover:text-primary transition-colors",children:"Program"}),c.jsx("a",{href:"#benefits",className:"text-foreground hover:text-primary transition-colors",children:"Benefits"}),c.jsx("a",{href:"#process",className:"text-foreground hover:text-primary transition-colors",children:"Process"}),c.jsx("a",{href:"#contact",className:"text-foreground hover:text-primary transition-colors",children:"Contact"})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(qt,{variant:"elegant",children:"Get Consultation"}),c.jsx(qt,{variant:"hero",children:"Apply Now"})]})]})})}),We=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));We.displayName="Card";const Dt=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("flex flex-col space-y-1.5 p-6",e),...t}));Dt.displayName="CardHeader";const zt=w.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:Ce("text-2xl font-semibold leading-none tracking-tight",e),...t}));zt.displayName="CardTitle";const on=w.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:Ce("text-sm text-muted-foreground",e),...t}));on.displayName="CardDescription";const Ft=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("p-6 pt-0",e),...t}));Ft.displayName="CardContent";const OE=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("flex items-center p-6 pt-0",e),...t}));OE.displayName="CardFooter";const AE=lc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Xt({className:e,variant:t,...n}){return c.jsx("div",{className:Ce(AE({variant:t}),e),...n})}const _E="/assets/sao-tome-hero-va_cWfyp.jpg",ME=()=>c.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden",children:[c.jsxs("div",{className:"absolute inset-0 z-0",children:[c.jsx("img",{src:_E,alt:"São Tomé and Príncipe Paradise",className:"w-full h-full object-cover"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-navy/80 via-navy/60 to-transparent"})]}),c.jsx("div",{className:"container mx-auto px-4 relative z-10",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{className:"text-white space-y-8",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx(Xt,{variant:"outline",className:"border-gold text-gold bg-gold/10 px-4 py-2",children:"New Program Launched August 2025"}),c.jsxs("h1",{className:"text-5xl lg:text-6xl font-bold leading-tight",children:["São Tomé & Príncipe",c.jsx("span",{className:"block text-4xl lg:text-5xl bg-gradient-accent bg-clip-text text-transparent",children:"Citizenship by Investment"})]}),c.jsx("p",{className:"text-xl text-gray-200 max-w-2xl",children:"Secure your second citizenship in this pristine African island nation. Fast processing, competitive pricing, and exclusive benefits await."})]}),c.jsx("div",{className:"flex flex-wrap gap-4",children:c.jsx(qt,{variant:"premium",size:"lg",className:"text-lg px-8 py-6",children:"Start Application"})}),c.jsxs("div",{className:"flex flex-wrap gap-6 pt-4",children:[c.jsxs("div",{className:"flex items-center gap-2 text-white",children:[c.jsx(yi,{className:"h-5 w-5 text-gold"}),c.jsx("span",{children:"6 weeks processing"})]}),c.jsxs("div",{className:"flex items-center gap-2 text-white",children:[c.jsx(il,{className:"h-5 w-5 text-gold"}),c.jsx("span",{children:"61 visa-free destinations"})]}),c.jsxs("div",{className:"flex items-center gap-2 text-white",children:[c.jsx(xi,{className:"h-5 w-5 text-gold"}),c.jsx("span",{children:"No residency required"})]})]})]}),c.jsx("div",{className:"lg:ml-8",children:c.jsx(We,{className:"p-8 bg-card/95 backdrop-blur-sm shadow-large border-border/50",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"text-center space-y-2",children:[c.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Investment Options"}),c.jsx("p",{className:"text-muted-foreground",children:"Choose your path to citizenship"})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"p-4 bg-gradient-subtle rounded-lg border border-border",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:"Single Applicant"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Individual investment"})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("p",{className:"text-2xl font-bold text-primary",children:"$90,000"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"+ $5,000 fee"})]})]})}),c.jsx("div",{className:"p-4 bg-gradient-subtle rounded-lg border border-border",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:"Family (2-4 people)"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Includes spouse & children"})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("p",{className:"text-2xl font-bold text-primary",children:"$95,000"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"+ $5,000 fee"})]})]})}),c.jsx("div",{className:"p-4 bg-gradient-subtle rounded-lg border border-border",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:"Additional Dependents"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Each extra person"})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("p",{className:"text-2xl font-bold text-primary",children:"$5,000"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"per person"})]})]})})]}),c.jsx(qt,{variant:"hero",className:"w-full",size:"lg",children:"Get Free Assessment"})]})})})]})})]}),LE=()=>{const e=[{icon:c.jsx(yi,{className:"h-6 w-6"}),title:"Fast Processing",description:"6-week turnaround time from complete application"},{icon:c.jsx(xi,{className:"h-6 w-6"}),title:"No Residency Required",description:"No interview or physical residency obligations"},{icon:c.jsx(Sm,{className:"h-6 w-6"}),title:"Family Inclusion",description:"Include spouse, children up to 30, and parents over 55"},{icon:c.jsx(ac,{className:"h-6 w-6"}),title:"Global Mobility",description:"Visa-free access to 61 destinations including South Africa"}],t=["Spouse","Unmarried children up to 30 years old","Parents above 55 years old","Future newborn children ($500)"];return c.jsx("section",{id:"program",className:"py-20 bg-gradient-subtle",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center space-y-4 mb-16",children:[c.jsx(Xt,{variant:"outline",className:"text-primary border-primary",children:"Program Overview"}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground",children:"World's Newest Citizenship Program"}),c.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"São Tomé and Príncipe launched its citizenship by investment program in August 2025, offering a fast-track path to dual citizenship through a government donation."})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:e.map((n,r)=>c.jsx(We,{className:"text-center p-6 hover:shadow-medium transition-shadow border-border",children:c.jsxs(Ft,{className:"space-y-4",children:[c.jsx("div",{className:"h-12 w-12 bg-gradient-primary rounded-lg flex items-center justify-center text-primary-foreground mx-auto",children:n.icon}),c.jsx("h3",{className:"font-semibold text-foreground",children:n.title}),c.jsx("p",{className:"text-sm text-muted-foreground",children:n.description})]})},r))}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[c.jsxs(We,{className:"shadow-medium border-border",children:[c.jsxs(Dt,{children:[c.jsx(zt,{className:"text-2xl text-foreground",children:"Program Details"}),c.jsx(on,{children:"Key information about the São Tomé and Príncipe citizenship program"})]}),c.jsx(Ft,{className:"space-y-6",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Oo,{className:"h-5 w-5 text-primary mt-0.5"}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:"Dubai-Based Processing"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Citizenship Investment Unit (CIU) operates from Dubai as a public-private partnership"})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Oo,{className:"h-5 w-5 text-primary mt-0.5"}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:"National Transformation Fund"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Donations support renewable energy, housing, education, and infrastructure projects"})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Oo,{className:"h-5 w-5 text-primary mt-0.5"}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:"Inclusive Nationality Policy"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Open to all nationalities except North Korea. Russians and Iranians welcome"})]})]})]})})]}),c.jsxs(We,{className:"shadow-medium border-border",children:[c.jsxs(Dt,{children:[c.jsx(zt,{className:"text-2xl text-foreground",children:"Eligible Dependents"}),c.jsx(on,{children:"Family members who can be included in your application"})]}),c.jsxs(Ft,{children:[c.jsx("div",{className:"space-y-4",children:t.map((n,r)=>c.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gradient-subtle rounded-lg",children:[c.jsx(Oo,{className:"h-5 w-5 text-primary"}),c.jsx("span",{className:"text-foreground",children:n})]},r))}),c.jsxs("div",{className:"mt-6 p-4 bg-muted rounded-lg",children:[c.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Future Additions"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"You can add dependents after initial approval with additional fees: $10,000 for spouse, $5,000 for other qualifying dependents, $500 for newborns."})]})]})]})]})]})})},IE=()=>{const e=[{icon:c.jsx(il,{className:"h-8 w-8"}),title:"Global Mobility",description:"Visa-free access to 61 destinations",details:["South Africa visa-free access","Strategic African passport","Enhanced travel freedom","Business opportunities across Africa"]},{icon:c.jsx(xi,{className:"h-8 w-8"}),title:"Security & Privacy",description:"Enhanced protection and privacy",details:["Political risk mitigation","Enhanced privacy protection","Dual citizenship allowed","Neutral international stance"]},{icon:c.jsx(vx,{className:"h-8 w-8"}),title:"Tax Optimization",description:"Legal tax restructuring opportunities",details:["Global tax optimization","Estate planning benefits","International banking access","Investment diversification"]},{icon:c.jsx(cx,{className:"h-8 w-8"}),title:"Business Expansion",description:"New market opportunities",details:["African market access","Regional investment opportunities","Cross-border business facilitation","Economic community benefits"]},{icon:c.jsx(hx,{className:"h-8 w-8"}),title:"Family Security",description:"Multi-generational benefits",details:["Include entire family","Future generations protected","Educational opportunities","Healthcare access"]},{icon:c.jsx(dx,{className:"h-8 w-8"}),title:"No Obligations",description:"Minimal requirements",details:["No residency requirements","No interview process","No language requirements","No physical presence needed"]}],t=["South Africa","Angola","Cape Verde","Ghana","Kenya","Morocco","Tunisia","Senegal","Tanzania","Uganda","Zambia","Zimbabwe"];return c.jsx("section",{id:"benefits",className:"py-20 bg-background",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center space-y-4 mb-16",children:[c.jsx(Xt,{variant:"outline",className:"text-primary border-primary",children:"Citizenship Benefits"}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground",children:"Beyond Global Mobility"}),c.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"São Tomé and Príncipe citizenship offers comprehensive benefits for sophisticated investors who understand the true value of second citizenship and dual nationality."})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:e.map((n,r)=>c.jsxs(We,{className:"group hover:shadow-large transition-all duration-300 transform hover:-translate-y-1 border-border",children:[c.jsxs(Dt,{children:[c.jsx("div",{className:"h-16 w-16 bg-gradient-primary rounded-lg flex items-center justify-center text-primary-foreground mb-4 group-hover:shadow-glow transition-shadow",children:n.icon}),c.jsx(zt,{className:"text-xl text-foreground",children:n.title}),c.jsx(on,{className:"text-muted-foreground",children:n.description})]}),c.jsx(Ft,{children:c.jsx("ul",{className:"space-y-2",children:n.details.map((o,i)=>c.jsxs("li",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[c.jsx("div",{className:"h-1.5 w-1.5 bg-primary rounded-full"}),o]},i))})})]},r))}),c.jsxs(We,{className:"bg-gradient-subtle border-border shadow-medium",children:[c.jsxs(Dt,{className:"text-center",children:[c.jsx(zt,{className:"text-2xl text-foreground",children:"61 Visa-Free Destinations"}),c.jsx(on,{children:"Travel freely to key destinations across Africa and beyond"})]}),c.jsx(Ft,{children:c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:[t.map((n,r)=>c.jsx("div",{className:"p-3 bg-card rounded-lg border border-border text-center",children:c.jsx("span",{className:"text-sm font-medium text-foreground",children:n})},r)),c.jsx("div",{className:"p-3 bg-primary/10 rounded-lg border border-primary text-center",children:c.jsx("span",{className:"text-sm font-medium text-primary",children:"+49 more destinations"})})]})})]})]})})},DE=()=>{const e=[{step:"01",icon:c.jsx(px,{className:"h-6 w-6"}),title:"Initial Consultation",description:"Free assessment and document review",duration:"1-2 days",details:["Eligibility assessment","Document checklist provided","Investment strategy discussion","Family inclusion planning"]},{step:"02",icon:c.jsx(fx,{className:"h-6 w-6"}),title:"Submit Application",description:"Pay submission fee and submit documents",duration:"1 week",details:["$5,000 submission fee payment","Complete application form","Submit required documents","Initial background checks"]},{step:"03",icon:c.jsx(yi,{className:"h-6 w-6"}),title:"Due Diligence",description:"Government review and approval process",duration:"4-5 weeks",details:["Background verification","Source of funds verification","Government review process","Approval in Principle issued"]},{step:"04",icon:c.jsx(ux,{className:"h-6 w-6"}),title:"Investment Payment",description:"Make donation to National Transformation Fund",duration:"1-2 days",details:["Donation payment transfer","Payment confirmation","Final approval process","Certificate of naturalization"]},{step:"05",icon:c.jsx(xi,{className:"h-6 w-6"}),title:"Passport Issuance",description:"Receive your São Tomé passport",duration:"1 week",details:["Passport application processing","National ID issuance ($150)","Certificate of registration ($250)","Passport delivery ($350)"]}],t=[{category:"Initial Fees",items:[{description:"Submission Fee (one-time)",amount:"$5,000"},{description:"Single Applicant Donation",amount:"$90,000"},{description:"Family (2-4 people) Donation",amount:"$95,000"},{description:"Each Additional Dependent",amount:"$5,000"}]},{category:"Government Fees (per person)",items:[{description:"Passport Issuance",amount:"$350"},{description:"National ID",amount:"$150"},{description:"Certificate of Registration",amount:"$250"}]},{category:"Future Additions",items:[{description:"Resubmission Fee",amount:"$5,000"},{description:"Spouse Addition",amount:"$10,000"},{description:"Other Dependent Addition",amount:"$5,000"},{description:"Newborn Child",amount:"$500"}]}];return c.jsx("section",{id:"process",className:"py-20 bg-gradient-subtle",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center space-y-4 mb-16",children:[c.jsx(Xt,{variant:"outline",className:"text-primary border-primary",children:"Application Process"}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground",children:"Simple 5-Step Process"}),c.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Our streamlined process ensures quick and efficient processing of your citizenship application. From initial consultation to passport in hand in just 6 weeks."})]}),c.jsx("div",{className:"space-y-8 mb-16",children:e.map((n,r)=>c.jsxs(We,{className:"relative overflow-hidden border-border shadow-medium",children:[c.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-primary"}),c.jsx(Dt,{children:c.jsxs("div",{className:"flex items-start gap-6",children:[c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx("div",{className:"h-16 w-16 bg-gradient-primary rounded-full flex items-center justify-center text-primary-foreground shadow-glow",children:n.icon}),c.jsx(Xt,{variant:"outline",className:"mt-2 text-xs border-primary text-primary",children:n.duration})]}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-2",children:[c.jsx("span",{className:"text-3xl font-bold text-primary",children:n.step}),c.jsx(zt,{className:"text-2xl text-foreground",children:n.title})]}),c.jsx(on,{className:"text-lg text-muted-foreground mb-4",children:n.description}),c.jsx("div",{className:"grid md:grid-cols-2 gap-2",children:n.details.map((o,i)=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Oo,{className:"h-4 w-4 text-primary"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:o})]},i))})]})]})})]},r))}),c.jsxs(We,{className:"shadow-large border-border",children:[c.jsxs(Dt,{className:"text-center",children:[c.jsx(zt,{className:"text-3xl text-foreground",children:"Complete Fee Structure"}),c.jsx(on,{className:"text-lg",children:"Transparent pricing with no hidden fees"})]}),c.jsxs(Ft,{children:[c.jsx("div",{className:"grid lg:grid-cols-3 gap-8",children:t.map((n,r)=>c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-xl font-semibold text-foreground border-b border-border pb-2",children:n.category}),c.jsx("div",{className:"space-y-3",children:n.items.map((o,i)=>c.jsxs("div",{className:"flex justify-between items-center p-3 bg-gradient-subtle rounded-lg",children:[c.jsx("span",{className:"text-sm text-foreground",children:o.description}),c.jsx("span",{className:"font-semibold text-primary",children:o.amount})]},i))})]},r))}),c.jsx("div",{className:"mt-8 text-center",children:c.jsx(qt,{variant:"hero",size:"lg",className:"px-12",children:"Start Your Application Today"})})]})]})]})})},Xn=w.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:Ce("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Xn.displayName="Input";const Ng=w.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:Ce("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ng.displayName="Textarea";const zE=()=>{const e=[{icon:c.jsx(gx,{className:"h-5 w-5"}),title:"Phone Number",description:"+44 7441 477554",details:"Available during business hours"},{icon:c.jsx(mx,{className:"h-5 w-5"}),title:"Email Address",description:"saotomecitizenship@gmail.com",details:"We respond within 24 hours"},{icon:c.jsx(ac,{className:"h-5 w-5"}),title:"Dubai Office",description:"Citizenship Investment Unit (CIU)",details:"Dubai, UAE - Strategic global hub location"},{icon:c.jsx(yi,{className:"h-5 w-5"}),title:"Processing Time",description:"6 weeks from complete application",details:"Fast-track processing guaranteed"},{icon:c.jsx(Sm,{className:"h-5 w-5"}),title:"Agent Commission",description:"$20,000 flat commission",details:"Regardless of family size"},{icon:c.jsx(il,{className:"h-5 w-5"}),title:"Global Reach",description:"International accessibility",details:"Dubai-based for worldwide convenience"}],t=["No interview requirements","No residency obligations","Biometric-based process","Experienced team of professionals","Government oversight with private efficiency","Strategic location in Dubai"];return c.jsx("section",{id:"contact",className:"py-20 bg-background",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center space-y-4 mb-16",children:[c.jsx(Xt,{variant:"outline",className:"text-primary border-primary",children:"Get Started Today"}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground",children:"Ready to Begin Your Journey?"}),c.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Applications open from the first week of September 2025. Contact our experienced team for a free consultation and personalized guidance."})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[c.jsxs("div",{className:"space-y-8",children:[c.jsxs(We,{className:"border-border shadow-medium",children:[c.jsxs(Dt,{children:[c.jsx(zt,{className:"text-2xl text-foreground",children:"Contact Information"}),c.jsx(on,{children:"Reach out to our experienced citizenship investment professionals"})]}),c.jsx(Ft,{className:"space-y-6",children:e.map((n,r)=>c.jsxs("div",{className:"flex items-start gap-4 p-4 bg-gradient-subtle rounded-lg",children:[c.jsx("div",{className:"h-10 w-10 bg-gradient-primary rounded-lg flex items-center justify-center text-primary-foreground",children:n.icon}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground",children:n.title}),c.jsx("p",{className:"text-sm text-primary",children:n.description}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n.details})]})]},r))})]}),c.jsxs(We,{className:"border-border shadow-medium",children:[c.jsx(Dt,{children:c.jsx(zt,{className:"text-xl text-foreground",children:"Why Choose Our Service"})}),c.jsx(Ft,{children:c.jsx("div",{className:"space-y-3",children:t.map((n,r)=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"h-2 w-2 bg-primary rounded-full"}),c.jsx("span",{className:"text-sm text-foreground",children:n})]},r))})})]})]}),c.jsxs(We,{className:"border-border shadow-large",children:[c.jsxs(Dt,{children:[c.jsx(zt,{className:"text-2xl text-foreground",children:"Request Consultation"}),c.jsx(on,{children:"Get a free assessment and personalized guidance for your citizenship application"})]}),c.jsxs(Ft,{className:"space-y-6",children:[c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"First Name"}),c.jsx(Xn,{placeholder:"Enter your first name",className:"border-border"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"Last Name"}),c.jsx(Xn,{placeholder:"Enter your last name",className:"border-border"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"Email"}),c.jsx(Xn,{type:"email",placeholder:"Enter your email address",className:"border-border"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"Phone Number"}),c.jsx(Xn,{type:"tel",placeholder:"Enter your phone number",className:"border-border"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"Current Nationality"}),c.jsx(Xn,{placeholder:"Enter your current nationality",className:"border-border"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"Family Size"}),c.jsx(Xn,{placeholder:"Number of family members to include",className:"border-border"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium text-foreground mb-2 block",children:"Message"}),c.jsx(Ng,{placeholder:"Tell us about your citizenship goals and any specific questions...",className:"min-h-[120px] border-border"})]}),c.jsx("div",{className:"space-y-4",children:c.jsx(qt,{variant:"hero",className:"w-full",size:"lg",children:"Request Free Consultation"})}),c.jsx("div",{className:"text-center",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"By submitting this form, you agree to our privacy policy and terms of service. We will contact you within 24 hours."})})]})]})]}),c.jsxs("div",{className:"mt-16 text-center bg-gradient-hero rounded-2xl p-12 text-white",children:[c.jsx("h3",{className:"text-3xl font-bold mb-4",children:"Join the São Tomé and Príncipe Citizenship Program"}),c.jsx("p",{className:"text-xl mb-8 text-white/90",children:"Secure your family's future with one of the world's newest and most accessible citizenship programs."}),c.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[c.jsx(qt,{variant:"premium",size:"lg",className:"px-8",children:"Apply Now"}),c.jsx(qt,{variant:"outline",size:"lg",className:"px-8 border-white text-black hover:bg-white hover:text-black",children:"Schedule Call"})]})]})]})})},FE=()=>{const e=["Program Overview","Investment Options","Application Process","Fee Structure","Contact Us"],t=["Privacy Policy","Terms of Service","Legal Disclaimers","Refund Policy"];return c.jsx("footer",{className:"bg-navy text-white py-16",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"grid lg:grid-cols-4 gap-8 mb-12",children:[c.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:Cg,alt:"São Tomé and Príncipe Flag",className:"h-10 w-20 rounded-md object-contain border border-white/20 bg-white"}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-2xl font-bold",children:"São Tomé Citizenship"}),c.jsx("p",{className:"text-white/80",children:"Investment Program"})]})]}),c.jsx("p",{className:"text-white/70 max-w-md",children:"Official citizenship by investment program for São Tomé and Príncipe. Fast processing, competitive pricing, and comprehensive benefits for global investors."}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(We,{className:"p-4 bg-white/10 border-white/20",children:c.jsxs("div",{className:"flex items-center gap-2 text-white",children:[c.jsx(yi,{className:"h-4 w-4 text-gold"}),c.jsx("span",{className:"text-sm",children:"6 weeks processing"})]})}),c.jsx(We,{className:"p-4 bg-white/10 border-white/20",children:c.jsxs("div",{className:"flex items-center gap-2 text-white",children:[c.jsx(il,{className:"h-4 w-4 text-gold"}),c.jsx("span",{className:"text-sm",children:"61 destinations"})]})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-lg font-semibold mb-4 text-white",children:"Quick Links"}),c.jsx("ul",{className:"space-y-2",children:e.map((n,r)=>c.jsx("li",{children:c.jsx("a",{href:"#",className:"text-white/70 hover:text-gold transition-colors text-sm",children:n})},r))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-lg font-semibold mb-4 text-white",children:"Legal"}),c.jsx("ul",{className:"space-y-2",children:t.map((n,r)=>c.jsx("li",{children:c.jsx("a",{href:"#",className:"text-white/70 hover:text-gold transition-colors text-sm",children:n})},r))})]})]}),c.jsxs("div",{className:"border-t border-white/20 pt-8",children:[c.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-4",children:[c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Xt,{variant:"outline",className:"border-gold text-gold bg-gold/10",children:"Program Launched August 2025"}),c.jsx(Xt,{variant:"outline",className:"border-white/30 text-white bg-white/10",children:"Dubai-Based CIU"}),c.jsx(Xt,{variant:"outline",className:"border-white/30 text-white bg-white/10",children:"Government Approved"})]}),c.jsxs("div",{className:"flex items-center gap-4 text-sm text-white/70",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(xi,{className:"h-4 w-4 text-gold"}),c.jsx("span",{children:"Secure & Confidential"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ac,{className:"h-4 w-4 text-gold"}),c.jsx("span",{children:"Dubai, UAE"})]})]})]}),c.jsx("div",{className:"mt-6 text-center text-sm text-white/60",children:c.jsx("p",{children:"© 2025 São Tomé and Príncipe Citizenship Investment Program. All rights reserved. This website is for informational purposes only and does not constitute legal advice."})})]})]})})},$E=()=>c.jsxs("div",{className:"min-h-screen",children:[c.jsx(RE,{}),c.jsx(ME,{}),c.jsx(LE,{}),c.jsx(IE,{}),c.jsx(DE,{}),c.jsx(zE,{}),c.jsx(FE,{})]}),BE=()=>{const e=bg();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},UE=new BS,VE=()=>c.jsx(VS,{client:UE,children:c.jsxs(vS,{children:[c.jsx(ew,{}),c.jsx(Aw,{}),c.jsx(jE,{children:c.jsxs(NE,{children:[c.jsx(su,{path:"/",element:c.jsx($E,{})}),c.jsx(su,{path:"*",element:c.jsx(BE,{})})]})})]})});Wh(document.getElementById("root")).render(c.jsx(VE,{}));